| Package | Description |
|---|---|
| com.io7m.jorchard.core |
Core types and functions.
|
| Modifier and Type | Class and Description |
|---|---|
class |
JOTreeNode<A>
The default implementation of the
JOTreeNodeType type. |
| Modifier and Type | Method and Description |
|---|---|
JOTreeNodeType<A> |
JOTreeNodeType.childAdd(JOTreeNodeType<A> child)
Add a child to this node.
|
JOTreeNodeType<A> |
JOTreeNode.childAdd(JOTreeNodeType<A> child) |
JOTreeNodeType<A> |
JOTreeNodeType.childRemove(JOTreeNodeType<A> child)
Remove a child from this node.
|
JOTreeNodeType<A> |
JOTreeNode.childRemove(JOTreeNodeType<A> child) |
static <A> JOTreeNodeType<A> |
JOTreeNode.create(A in_value)
Create a new node with the given value.
|
static <A> JOTreeNodeType<A> |
JOTreeNode.createWithDetachCheck(A in_value,
BooleanSupplier in_detach_check)
Create a new node with the given value.
|
JOTreeNodeType<A> |
JOTreeNodeType.detach()
Detach this node from its parent node.
|
JOTreeNodeType<A> |
JOTreeNode.detach() |
<T,B> JOTreeNodeType<B> |
JOTreeNodeReadableType.mapBreadthFirst(T context,
JOTreeNodeMapFunctionType<A,T,B> f)
Visit each node in the tree in breadth-first order.
|
<T,B> JOTreeNodeType<B> |
JOTreeNode.mapBreadthFirst(T context,
JOTreeNodeMapFunctionType<A,T,B> f) |
<T,B> JOTreeNodeType<B> |
JOTreeNodeReadableType.mapDepthFirst(T context,
JOTreeNodeMapFunctionType<A,T,B> f)
Visit each node in the tree in depth-first order.
|
<T,B> JOTreeNodeType<B> |
JOTreeNode.mapDepthFirst(T context,
JOTreeNodeMapFunctionType<A,T,B> f) |
JOTreeNodeType<A> |
JOTreeNodeType.setParent(JOTreeNodeType<A> new_parent)
Set this node's parent to
new_parent. |
JOTreeNodeType<A> |
JOTreeNode.setParent(JOTreeNodeType<A> parent_new) |
| Modifier and Type | Method and Description |
|---|---|
Collection<JOTreeNodeType<A>> |
JOTreeNodeType.children() |
Collection<JOTreeNodeType<A>> |
JOTreeNode.children() |
Optional<JOTreeNodeType<A>> |
JOTreeNodeType.parent() |
Optional<JOTreeNodeType<A>> |
JOTreeNode.parent() |
| Modifier and Type | Method and Description |
|---|---|
JOTreeNodeType<A> |
JOTreeNodeType.childAdd(JOTreeNodeType<A> child)
Add a child to this node.
|
JOTreeNodeType<A> |
JOTreeNode.childAdd(JOTreeNodeType<A> child) |
JOTreeNodeType<A> |
JOTreeNodeType.childRemove(JOTreeNodeType<A> child)
Remove a child from this node.
|
JOTreeNodeType<A> |
JOTreeNode.childRemove(JOTreeNodeType<A> child) |
JOTreeNodeType<A> |
JOTreeNodeType.setParent(JOTreeNodeType<A> new_parent)
Set this node's parent to
new_parent. |
JOTreeNodeType<A> |
JOTreeNode.setParent(JOTreeNodeType<A> parent_new) |
Copyright © 2017 <code@io7m.com> http://io7m.com