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
  • Constructor Details

    • TreeNode

      public TreeNode()
    • TreeNode

      public TreeNode(T o)
  • Method Details

    • getChildren

      public List<TreeNode<T>> getChildren()
    • getParent

      public TreeNode<T> getParent()
    • add

      public void add(TreeNode<T> newChild)
    • getUserObject

      public T getUserObject()
    • setUserObject

      public void setUserObject(T userObject)
    • debugDump

      public String debugDump(int indent)
      Specified by:
      debugDump in interface DebugDumpable
    • transform

      public <N> TreeNode<N> transform(Function<T,N> transformation)
    • acceptDepthFirst

      public void acceptDepthFirst(TreeNodeVisitor<T> visitor)
    • getAllDataDepthFirst

      public List<T> getAllDataDepthFirst()
    • getDepth

      public int getDepth()