| Package | Description |
|---|---|
| net.pterodactylus.util.data |
| Modifier and Type | Method and Description |
|---|---|
Node<E> |
Node.addChild(E child)
Adds an element as a child to this node and returns the created node.
|
Node<E> |
Node.findChild(E element)
Searches this node’s children recursively for a node that contains the
given element.
|
Node<E> |
Node.getChild(E element)
Returns the direct child node that contains the given element.
|
Node<E> |
Node.getChild(int index)
Returns the child at the given index.
|
Node<E> |
Node.getParent()
Returns the parent node of the node.
|
Node<E> |
Tree.getRootNode()
Returns the root node of the tree.
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<Node<E>> |
Node.iterator() |
| Modifier and Type | Method and Description |
|---|---|
int |
Node.getIndexOfChild(Node<E> childNode)
Returns the index of the given child node.
|
boolean |
Node.hasChild(Node<E> childNode)
Returns whether the given node is a direct child of this node.
|
void |
Node.removeChild(Node<E> childNode)
Remove the given child node from this node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Node.sortChildren(Comparator<Node<E>> comparator)
Sorts all children with the given comparator.
|
Copyright © 2026. All rights reserved.