T - the generic type of the valuepublic interface IChainableTreeNode<T>
IChainableTreeNode represents a chainable tree node| Modifier and Type | Method and Description |
|---|---|
default List<IChainableTreeNode<T>> |
getAllParent()
Gets all parent
IChainableTreeNode from the current tree node |
IChainableTreeNode<T> |
getChild()
Gets the child.
|
default int |
getChildCount()
Gets the child count.
|
default List<IChainableTreeNode<T>> |
getChildren()
Gets the children from the current tree node
|
default int |
getLevel()
Returns the distance from the root to this node.
|
IChainableTreeNode<T> |
getParent()
Gets the parent
|
default IChainableTreeNode<T> |
getRoot()
Gets the root
IChainableTreeNode object |
T |
getValue()
Gets the value.
|
default boolean |
hasChild()
Checks if this tree node has a child
|
default boolean |
hasParent()
Checks for parent
|
default boolean |
isRoot()
Checks if this treenode is root.
|
void |
setChild(IChainableTreeNode<T> child)
Sets the child.
|
void |
setParent(IChainableTreeNode<T> parent)
Sets the parent.
|
void |
setValue(T value)
Sets the value.
|
default List<IChainableTreeNode<T>> |
toList()
Transforms this tree node object to an ordered
LinkedList with all tree nodes |
default List<IChainableTreeNode<T>> getAllParent()
IChainableTreeNode from the current tree nodeIChainableTreeNode from the current tree nodeIChainableTreeNode<T> getChild()
default int getChildCount()
default List<IChainableTreeNode<T>> getChildren()
default int getLevel()
IChainableTreeNode<T> getParent()
default IChainableTreeNode<T> getRoot()
IChainableTreeNode objectIChainableTreeNode objectT getValue()
default boolean hasChild()
default boolean hasParent()
default boolean isRoot()
void setChild(IChainableTreeNode<T> child)
child - the new childvoid setParent(IChainableTreeNode<T> parent)
parent - the new parentvoid setValue(T value)
value - the new valuedefault List<IChainableTreeNode<T>> toList()
LinkedList with all tree nodesLinkedList with all tree nodesCopyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.