Module gen.tree
Package io.github.astrapi69.gen.tree.api
Interface IBaseTreeNode<V,K,T extends IBaseTreeNode<V,K,T>>
-
- Type Parameters:
V
- the generic type of the valueK
- the generic type of the id of the nodeT
- the generic type of the concrete tree node
- All Superinterfaces:
io.github.astrapi69.design.pattern.visitor.Acceptable<io.github.astrapi69.design.pattern.visitor.Visitor<T>>
,io.github.astrapi69.tree.api.ITree<V,T>
,ITreeNode<V,T>
,java.io.Serializable
- All Known Implementing Classes:
BaseTreeNode
public interface IBaseTreeNode<V,K,T extends IBaseTreeNode<V,K,T>> extends ITreeNode<V,T>
The InterfaceIBaseTreeNode
extendsITreeNode
and provides an additional id field that can be used as key
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description K
getId()
Gets the idvoid
setId(K id)
Sets the id-
Methods inherited from interface io.github.astrapi69.tree.api.ITree
getChildren, getDisplayValue, getParent, getValue, isLeaf, setChildren, setDisplayValue, setLeaf, setParent, setValue
-
Methods inherited from interface io.github.astrapi69.gen.tree.api.ITreeNode
accept, addChild, addChildren, clearAll, clearChildren, contains, containsAll, findAllByValue, findByValue, getAllSiblings, getChildCount, getLevel, getNextSibling, getPreviousSibling, getRoot, hasChildren, hasParent, isNode, isRoot, removeChild, removeChildren, removeChildren, toList, traverse
-
-