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

java.lang.Object
io.github.astrapi69.gen.tree.visitor.FindValuesIBaseTreeNodeVisitor<V,K,T>
Type Parameters:
T - the generic type of the value
K - the generic type of the id from the node
All Implemented Interfaces:
io.github.astrapi69.design.pattern.visitor.Visitor<T>
Direct Known Subclasses:
FindValuesBaseTreeNodeVisitor

public class FindValuesIBaseTreeNodeVisitor<V,K,T extends IBaseTreeNode<V,K,T>> extends Object implements io.github.astrapi69.design.pattern.visitor.Visitor<T>
This visitor visits all IBaseTreeNode objects and checks if the value equals with the value of this visitor
  • Constructor Details

    • FindValuesIBaseTreeNodeVisitor

      public FindValuesIBaseTreeNodeVisitor(V value)
      Instantiates a new FindValuesIBaseTreeNodeVisitor object
      Parameters:
      value - the value
  • Method Details

    • visit

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