O
- Object typepublic interface Hierarchy<O>
hierarchy.iterChildren(object);
.Modifier and Type | Interface and Description |
---|---|
static interface |
Hierarchy.Iter<O>
Iterator interface.
|
Modifier and Type | Method and Description |
---|---|
Hierarchy.Iter<O> |
iterAll()
Iterate over all members.
|
Hierarchy.Iter<O> |
iterAncestors(O self)
Iterate ancestors (recursive parents)
|
Hierarchy.Iter<O> |
iterChildren(O self)
Iterate over the (direct) children.
|
Hierarchy.Iter<O> |
iterDescendants(O self)
Iterate descendants (recursive children)
|
Hierarchy.Iter<O> |
iterParents(O self)
Iterate over the (direct) parents.
|
int |
numChildren(O self)
Get number of children
|
int |
numParents(O self)
Get number of (direct) parents
|
int |
size()
Total size - number of objects contained.
|
int size()
int numChildren(O self)
self
- object to get number of children forHierarchy.Iter<O> iterChildren(O self)
self
- object to get children forHierarchy.Iter<O> iterDescendants(O self)
self
- object to get descendants forint numParents(O self)
self
- reference objectHierarchy.Iter<O> iterParents(O self)
self
- object to get parents forHierarchy.Iter<O> iterAncestors(O self)
self
- object to get ancestors forHierarchy.Iter<O> iterAll()