+ Children have + a new lazy(Callable<Children> factory) method, that can be used + to provide a lazy children implementation. Callable.call() is called + just when node's children are really needed. +
+call()
method
+ * is called just when node's children are really needed.
+ * @return Provides lazy children implementation that can be passed
+ * to {@link Node} constructor and thus allows the client code to decide
+ * what children the node should have when {@link Callable#call()} is called.
+ * @since 7.18
+ */
+ public static Children lazy(Callablenull
if there is none yet
*/
@@ -1793,6 +1807,74 @@
}
}
+ /**
+ * Lazy children implementation
+ */
+ static class LazyChildren extends Children {
+
+ private Callable