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

java.lang.Object
io.github.astrapi69.gen.tree.visitor.ReindexTreeNodeVisitor<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 Implemented Interfaces:
io.github.astrapi69.design.pattern.visitor.Visitor<T>

public class ReindexTreeNodeVisitor<V,K,T extends IBaseTreeNode<V,K,T>> extends 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 descendants
  • Constructor Details

    • ReindexTreeNodeVisitor

      public ReindexTreeNodeVisitor(io.github.astrapi69.data.identifiable.IdGenerator<K> idGenerator)
      Instantiates a new ReindexTreeNodeVisitor object
      Parameters:
      idGenerator - the id generator
  • Method Details

    • visit

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