/** Returns a {@link TreeBuilder} instance. */ public static TreeBuilder<Object> builder() { return new TreeBuilder<Object>(); }
/** * Returns a {@link TreeBuilder} initialized with all properties queryable from {@code tree}. * * <p>The "queryable" properties are those that are exposed through the {@link CTree} interface, * such as {@link CTree#nodeOrder()}. Other properties, such as {@link #expectedNodeCount(int)}, * are not set in the new builder. */ public static <N> TreeBuilder<N> from(CTree<N> tree) { return new TreeBuilder<Object>().nodeOrder(tree.nodeOrder()); }