Module gen.tree

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>>, 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 Interface IBaseTreeNode extends ITreeNode and provides an additional id field that can be used as key
    • Method Detail

      • getId

        K getId()
        Gets the id
        Returns:
        the id
      • setId

        void setId​(K id)
        Sets the id
        Parameters:
        id - the id