A - The type of contained values.public interface JOTreeNodeType<A> extends JOTreeNodeReadableType<A>
| Modifier and Type | Method and Description |
|---|---|
void |
childAdd(JOTreeNodeType<A> child)
Add a child to this node.
|
void |
childRemove(JOTreeNodeType<A> child)
Remove a child from this node.
|
Collection<JOTreeNodeType<A>> |
children() |
void |
detach()
Detach this node from its parent node.
|
Optional<JOTreeNodeType<A>> |
parent() |
void |
setParent(JOTreeNodeType<A> new_parent)
Set this node's parent to
new_parent. |
childrenReadable, forEachBreadthFirst, forEachDepthFirst, isDescendantOf, isDetachAllowed, isRoot, mapBreadthFirst, mapDepthFirst, parentReadable, valuevoid detach()
Collection<JOTreeNodeType<A>> children()
void childRemove(JOTreeNodeType<A> child)
child - A child nodevoid childAdd(JOTreeNodeType<A> child) throws JOTreeExceptionCycle
child - A child nodeJOTreeExceptionCycle - Iff adding the child would introduce a cycle
in the treevoid 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 © 2016 <code@io7m.com> http://io7m.com