Interface IBaseTreeNode<V,K,T extends IBaseTreeNode<V,K,T>>

Type Parameters:
V - the generic type of the value
K - the generic type of the id of the node
T - 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 Details

    • findById

      default T findById(@NonNull K id)
    • sortChildren

      void sortChildren()
      Sorts the children collection if the comparator is not null