T
- - the type of object in the hierarchypublic interface Hierarchical<T>
Modifier and Type | Method and Description |
---|---|
java.util.List<T> |
getChildren()
Returns any children of this object.
|
T |
getParent()
Returns the parent Object of this object, a null object reference will be
returned if rther is no parent
|
boolean |
hasChildren()
Returns
true if this Object contains children,
if this is the case the method call getChildren() is
guaranteed to return a Set with length greater then 0. |
boolean |
hasParent()
Returns
true if this Object has a parent, false otherwise. |
java.util.List<T> getChildren()
null
will be returned.T getParent()
boolean hasChildren()
true
if this Object contains children,
if this is the case the method call getChildren()
is
guaranteed to return a Set with length greater then 0.boolean hasParent()
true
if this Object has a parent, false otherwise.