Package cloud.commandframework
Class CommandTree.Node<T>
java.lang.Object
cloud.commandframework.CommandTree.Node<T>
- Type Parameters:
T- Node value type
- Enclosing class:
- CommandTree<C>
Very simple tree structure
-
Method Summary
Modifier and TypeMethodDescriptionboolean@NonNull List<@NonNull CommandTree.Node<@Nullable T>>Get an immutable copy of the node's child listGet the node meta instance@Nullable CommandTree.Node<@Nullable T>Get the parent node@Nullable TgetValue()Get the node valueinthashCode()booleanisLeaf()Check if the node is a leaf nodevoidsetParent(@Nullable CommandTree.Node<@Nullable T> parent) Set the parent nodetoString()
-
Method Details
-
getChildren
Get an immutable copy of the node's child list- Returns:
- Children
-
isLeaf
public boolean isLeaf()Check if the node is a leaf node- Returns:
trueif the node is a leaf node, elsefalse
-
getNodeMeta
Get the node meta instance- Returns:
- Node meta
-
getValue
Get the node value- Returns:
- Node value
-
equals
-
hashCode
public int hashCode() -
getParent
Get the parent node- Returns:
- Parent node
-
setParent
Set the parent node- Parameters:
parent- new parent node
-
toString
-