Module gen.tree
Package io.github.astrapi69.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>>
,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.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
-
-