O
- Object typepublic interface ModifiableHierarchy<O> extends Hierarchy<O>
Hierarchy.Iter<O>
Modifier and Type | Method and Description |
---|---|
void |
add(O entry)
Add an entry (initializes data structures).
|
void |
add(O parent,
O child)
Add a parent-child relationship.
|
void |
remove(O entry)
Remove an entry and all its parent-child relationships.
|
void |
remove(O parent,
O child)
Remove a parent-child relationship.
|
void |
removeSubtree(O entry)
Remove an entry and it's whole subtree (unless the elements are reachable
by a different path!)
|
iterAll, iterAncestors, iterChildren, iterDescendants, iterParents, numChildren, numParents, size
void add(O parent, O child)
parent
- Parentchild
- Childvoid add(O entry)
entry
- Entryvoid remove(O parent, O child)
parent
- Parentchild
- Childvoid remove(O entry)
entry
- Entryvoid removeSubtree(O entry)
entry
- Entry