public interface Hierarchical<T>
Modifier and Type | Method and Description |
---|---|
List<T> |
getChildren()
Returns the current node's children.
|
String |
getName() |
T |
getParent()
Returns the parent's current node or null if the current node is the root.
|
List<T> |
getParents()
Returns the current node's ancestor or an empty list if this element is the root.
|
T |
getRoot()
Returns the root node of the hierarchy or the current node if it is the root.
|
boolean |
isRoot()
Returns true if the current node is the root of the hierarchy.
|
String getName()
boolean isRoot()
T getRoot()
T getParent()
List<T> getParents()
Copyright © 2005-2013 JAXIO S.A.R.L. - All Rights Reserved.