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.data.identifiable.GenericIdentifiable<K>
,io.github.astrapi69.tree.api.ITree<V,
,T> ITreeNode<V,
,T> Serializable
- All Known Implementing Classes:
BaseTreeNode
public interface IBaseTreeNode<V,K,T extends IBaseTreeNode<V,K,T>>
extends ITreeNode<V,T>, io.github.astrapi69.data.identifiable.GenericIdentifiable<K>
The Interface
IBaseTreeNode
extends ITreeNode
and provides an additional id field
that can be used as key-
Method Summary
Modifier and TypeMethodDescriptiondefault T
void
Sorts the children collection if the comparator is not nullMethods inherited from interface io.github.astrapi69.data.identifiable.GenericIdentifiable
getId, setId
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, addChild, addChildren, clearAll, clearChildren, contains, containsAll, findAllByValue, findByValue, getAllSiblings, getChildAt, getChildCount, getChildIndex, getLevel, getNextSibling, getPreviousSibling, getRoot, hasChildren, hasNextSibling, hasParent, hasPreviousSibling, isAncestor, isChild, isDescendant, isNode, isRoot, move, removeChild, removeChildren, removeChildren, toList, traverse
-
Method Details
-
findById
-
sortChildren
void sortChildren()Sorts the children collection if the comparator is not null
-