public class TreeNode<T> extends Object implements DebugDumpable
INDENT_STRING
Modifier and Type | Method and Description |
---|---|
void |
acceptDepthFirst(TreeNodeVisitor<T> visitor) |
void |
add(TreeNode<T> newChild) |
String |
debugDump(int indent) |
List<TreeNode<T>> |
getChildren() |
int |
getDepth() |
TreeNode<T> |
getParent() |
T |
getUserObject() |
void |
setUserObject(T userObject) |
<N> TreeNode<N> |
transform(Function<T,N> transformation) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
debugDump, debugDumpLazily, debugDumpLazily
public TreeNode()
public TreeNode(T o)
public T getUserObject()
public void setUserObject(T userObject)
public String debugDump(int indent)
debugDump
in interface DebugDumpable
public void acceptDepthFirst(TreeNodeVisitor<T> visitor)
public int getDepth()
Copyright © 2021 Evolveum. All rights reserved.