- java.lang.Object
-
- io.github.astrapi69.tree.BaseTreeNode<T,K>
-
- Type Parameters:
T
- the generic type of the valueK
- the generic type of the id of the node
- All Implemented Interfaces:
io.github.astrapi69.design.pattern.visitor.Acceptable<io.github.astrapi69.design.pattern.visitor.Visitor<BaseTreeNode<T,K>>>
,IBaseTreeNode<T,K,BaseTreeNode<T,K>>
,ITreeNode<T,BaseTreeNode<T,K>>
,java.io.Serializable
public class BaseTreeNode<T,K> extends java.lang.Object implements io.github.astrapi69.design.pattern.visitor.Acceptable<io.github.astrapi69.design.pattern.visitor.Visitor<BaseTreeNode<T,K>>>, IBaseTreeNode<T,K,BaseTreeNode<T,K>>
The generic classBaseTreeNode
have a generic id and value object- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BaseTreeNode(T value)
Instantiates a newBaseTreeNode
object
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.github.astrapi69.tree.api.IBaseTreeNode
getId, setId
-
Methods inherited from interface io.github.astrapi69.tree.api.ITreeNode
accept, addChild, addChildren, clearAll, clearChildren, contains, containsAll, findAllByValue, findByValue, getAllSiblings, getChildCount, getChildren, getDisplayValue, getLevel, getNextSibling, getParent, getPreviousSibling, getRoot, getValue, hasChildren, hasParent, isLeaf, isNode, isRoot, removeChild, removeChildren, removeChildren, setChildren, setDisplayValue, setLeaf, setParent, setValue, toList, traverse
-
-
-
-
Constructor Detail
-
BaseTreeNode
public BaseTreeNode(T value)
Instantiates a newBaseTreeNode
object- Parameters:
value
- the value
-
-