A - The type of contained values.JOTreeNodeReadableType<A>JOTreeNodepublic interface JOTreeNodeType<A> extends JOTreeNodeReadableType<A>
| Modifier and Type | Method | Description |
|---|---|---|
JOTreeNodeType<A> |
childAdd(JOTreeNodeType<A> child) |
Add a child to this node.
|
JOTreeNodeType<A> |
childRemove(JOTreeNodeType<A> child) |
Remove a child from this node.
|
Collection<JOTreeNodeType<A>> |
children() |
|
JOTreeNodeType<A> |
detach() |
Detach this node from its parent node.
|
Optional<JOTreeNodeType<A>> |
parent() |
|
JOTreeNodeType<A> |
setParent(JOTreeNodeType<A> new_parent) |
Set this node's parent to
new_parent. |
childrenReadable, forEachBreadthFirst, forEachDepthFirst, isDescendantOf, isDetachAllowed, isRoot, mapBreadthFirst, mapDepthFirst, parentReadable, valueJOTreeNodeType<A> detach()
Collection<JOTreeNodeType<A>> children()
JOTreeNodeType<A> childRemove(JOTreeNodeType<A> child)
child - A child nodeJOTreeNodeType<A> childAdd(JOTreeNodeType<A> child) throws JOTreeExceptionCycle
child - A child nodeJOTreeExceptionCycle - Iff adding the child would introduce a cycle
in the treeJOTreeNodeType<A> setParent(JOTreeNodeType<A> new_parent) throws JOTreeExceptionCycle
new_parent.new_parent - The new parent nodeJOTreeExceptionCycle - Iff setting the parent would introduce a cycle
in the treeOptional<JOTreeNodeType<A>> parent()
Copyright © 2017 <code@io7m.com> http://io7m.com