O
- Object typepublic interface Hierarchy<O>
hierarchy.getChildren(object);
.
See Hierarchical
for an interface for objects with an internal
hierarchy (where you can use object.getChildren();
)Modifier and Type | Method and Description |
---|---|
List<O> |
getChildren(O self)
Get children list.
|
List<O> |
getParents(O self)
Get parents list.
|
IterableIterator<O> |
iterAncestors(O self)
Iterate ancestors (recursive parents)
|
IterableIterator<O> |
iterDescendants(O self)
Iterate descendants (recursive children)
|
int |
numChildren(O self)
Get number of children
|
int |
numParents(O self)
Get number of (direct) parents
|
int numChildren(O self)
self
- object to get number of children forList<O> getChildren(O self)
self
- object to get children forIterableIterator<O> iterDescendants(O self)
self
- object to get descendants forint numParents(O self)
self
- reference objectList<O> getParents(O self)
self
- object to get parents forIterableIterator<O> iterAncestors(O self)
self
- object to get ancestors for