Class TreePath
java.lang.Object
org.apache.myfaces.tobago.model.TreePath
- All Implemented Interfaces:
Serializable
Handles a path in a tree from the root node to the position inside this tree.
The position of the root node is dropped in the list, because it would always be zero.
The path of the root node as length 0.
Example:
Example:
+ Root Path: [] | +-+ Node Path: [0] | | | +-+ Sub-Node Path: [0, 0] | | | +-+ Sub-Node Path: [0, 1] | +-+ Node Path: [1] | +-+ Sub-Node Path: [1, 0] | +-+ Sub-Node Path: [1, 1] | +-+ Sub-Node Path: [1, 2]
- Since:
- 1.5.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TreePath
public TreePath(int... path) -
TreePath
-
TreePath
-
-
Method Details
-
getPath
public int[] getPath() -
getParent
-
isRoot
public boolean isRoot() -
getLength
public int getLength() -
equals
-
hashCode
-
toString
-