Module gen.tree

Class ReindexTreeNodeVisitor<V,​K,​T extends IBaseTreeNode<V,​K,​T>>

  • Type Parameters:
    T - the generic type of the value
    All Implemented Interfaces:
    io.github.astrapi69.design.pattern.visitor.Visitor<T>

    public class ReindexTreeNodeVisitor<V,​K,​T extends IBaseTreeNode<V,​K,​T>>
    extends java.lang.Object
    implements io.github.astrapi69.design.pattern.visitor.Visitor<T>
    This visitor visits all ITreeNode objects and adds them to a Collection object with all descendant
    • Constructor Summary

      Constructors 
      Constructor Description
      ReindexTreeNodeVisitor​(io.github.astrapi69.data.identifiable.IdGenerator<K> idGenerator)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void visit​(T treeNode)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReindexTreeNodeVisitor

        public ReindexTreeNodeVisitor​(io.github.astrapi69.data.identifiable.IdGenerator<K> idGenerator)
    • Method Detail

      • visit

        public void visit​(T treeNode)
        Specified by:
        visit in interface io.github.astrapi69.design.pattern.visitor.Visitor<V>