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 valueK- the generic type of the id of the nodeT- 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 Summary
ConstructorsConstructorDescriptionReindexTreeNodeVisitor(io.github.astrapi69.data.identifiable.IdGenerator<K> idGenerator) Instantiates a newReindexTreeNodeVisitorobject -
Method Summary
-
Constructor Details
-
ReindexTreeNodeVisitor
Instantiates a newReindexTreeNodeVisitorobject- Parameters:
idGenerator- the id generator
-
-
Method Details
-
visit
- Specified by:
visitin interfaceio.github.astrapi69.design.pattern.visitor.Visitor<V>
-