Turns all arguments in args into a string that describes the arguments.
Turns all arguments in args into a string that describes the arguments.
argument string
Arguments that should be printed.
Arguments that should be printed. The default implementation excludes children.
Checks if other is a direct child of this tree.
Checks if other is a direct child of this tree.
other tree
true, iff other is a direct child of this tree
Checks if the parameter tree is contained within this tree.
Checks if the parameter tree is contained within this tree. A tree always contains itself.
other tree
true, iff other is contained in that tree
Prints the tree node and its children recursively in a tree-style layout.
Prints the tree node and its children recursively in a tree-style layout.
indentation depth used by the recursive call
tree-style representation of that node and all (grand-)children
(Changed in version 2.9.0) The behavior of scanRight has changed. The previous behavior can be reproduced with scanRight.reverse.
(Changed in version 2.9.0) transpose throws an IllegalArgumentException if collections are not uniformly sized.
Class that implements the
childrenandwithNewChildrenmethods using reflection when implementingTreeNodewith a case class or case object.Requirements: All child nodes need to be individual constructor parameters and their order in children is their order in the constructor. Every constructor parameter of type
Tis assumed to be a child node.This class caches values that are expensive to recompute.
The constructor can also contain a list of children, but there are constraints:
withNewChildrenwith a different number of children than the original node had and vary the length of the list to accommodate.