Package com.evolveum.midpoint.util
Class TreeNode<T>
- java.lang.Object
-
- com.evolveum.midpoint.util.TreeNode<T>
-
- All Implemented Interfaces:
DebugDumpable
- Direct Known Subclasses:
KeyValueTreeNode
public class TreeNode<T> extends Object implements DebugDumpable
- Author:
- mederly
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
-
-
-
Constructor Detail
-
TreeNode
public TreeNode()
-
TreeNode
public TreeNode(T o)
-
-
Method Detail
-
getUserObject
public T getUserObject()
-
setUserObject
public void setUserObject(T userObject)
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
acceptDepthFirst
public void acceptDepthFirst(TreeNodeVisitor<T> visitor)
-
getDepth
public int getDepth()
-
-