| Package | Description |
|---|---|
| com.io7m.jorchard.core |
Core types and functions.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
JOTreeNode<A> |
The default implementation of the
JOTreeNodeType type. |
| Modifier and Type | Method | Description |
|---|---|---|
JOTreeNodeType<A> |
JOTreeNode.childAdd(JOTreeNodeType<A> child) |
|
JOTreeNodeType<A> |
JOTreeNodeType.childAdd(JOTreeNodeType<A> child) |
Add a child to this node.
|
JOTreeNodeType<A> |
JOTreeNode.childRemove(JOTreeNodeType<A> child) |
|
JOTreeNodeType<A> |
JOTreeNodeType.childRemove(JOTreeNodeType<A> child) |
Remove a child from this node.
|
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> |
JOTreeNode.detach() |
|
JOTreeNodeType<A> |
JOTreeNodeType.detach() |
Detach this node from its parent node.
|
<T,B> JOTreeNodeType<B> |
JOTreeNode.mapBreadthFirst(T context,
JOTreeNodeMapFunctionType<A,T,B> f) |
|
<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.mapDepthFirst(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.
|
JOTreeNodeType<A> |
JOTreeNode.setParent(JOTreeNodeType<A> parent_new) |
|
JOTreeNodeType<A> |
JOTreeNodeType.setParent(JOTreeNodeType<A> new_parent) |
Set this node's parent to
new_parent. |
| Modifier and Type | Method | Description |
|---|---|---|
Collection<JOTreeNodeType<A>> |
JOTreeNode.children() |
|
Collection<JOTreeNodeType<A>> |
JOTreeNodeType.children() |
|
Optional<JOTreeNodeType<A>> |
JOTreeNode.parent() |
|
Optional<JOTreeNodeType<A>> |
JOTreeNodeType.parent() |
| Modifier and Type | Method | Description |
|---|---|---|
JOTreeNodeType<A> |
JOTreeNode.childAdd(JOTreeNodeType<A> child) |
|
JOTreeNodeType<A> |
JOTreeNodeType.childAdd(JOTreeNodeType<A> child) |
Add a child to this node.
|
JOTreeNodeType<A> |
JOTreeNode.childRemove(JOTreeNodeType<A> child) |
|
JOTreeNodeType<A> |
JOTreeNodeType.childRemove(JOTreeNodeType<A> child) |
Remove a child from this node.
|
JOTreeNodeType<A> |
JOTreeNode.setParent(JOTreeNodeType<A> parent_new) |
|
JOTreeNodeType<A> |
JOTreeNodeType.setParent(JOTreeNodeType<A> new_parent) |
Set this node's parent to
new_parent. |
Copyright © 2017 <code@io7m.com> http://io7m.com