Package de.xima.fc.common.tree
Class TreeVisit.TreePathFragment<Node>
- java.lang.Object
-
- de.xima.fc.common.tree.TreeVisit.TreePathFragment<Node>
-
- Type Parameters:
Node
- Type of the tree nodes.
- Enclosing class:
- TreeVisit
public static final class TreeVisit.TreePathFragment<Node> extends Object
Represents a fragment or part of the path of a node in a tree data structure.Assume the following tree:
- a1
- b
- c1
- c2
- b
- a2
c2
consist of the following 2 fragments:(a1, 0), (b, 0), (c2, 1)
That is, to accessc1
, start at the root, access the first child (which isa1
), then access the first child (which isb
), then access the second child (which isc2
).
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIndex()
Gets the index of the node, i.e.Node
getNode()
Gets the node representing this path fragment.
-