- java.lang.Object
-
- io.github.astrapi69.tree.visitor.FindValuesBaseTreeNodeVisitor<T,K>
-
- Type Parameters:
T
- the generic type of the valueK
- the generic type of the id of the node
- All Implemented Interfaces:
io.github.astrapi69.design.pattern.visitor.Visitor<BaseTreeNode<T,K>>
public class FindValuesBaseTreeNodeVisitor<T,K> extends java.lang.Object implements io.github.astrapi69.design.pattern.visitor.Visitor<BaseTreeNode<T,K>>
This visitor visits allBaseTreeNode
objects and checks if the value equals with the value of this visitor
-
-
Constructor Summary
Constructors Constructor Description FindValuesBaseTreeNodeVisitor(T value)
Instantiates a newFindValuesBaseTreeNodeVisitor
object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
visit(BaseTreeNode<T,K> treeNode)
-
-
-
Constructor Detail
-
FindValuesBaseTreeNodeVisitor
public FindValuesBaseTreeNodeVisitor(T value)
Instantiates a newFindValuesBaseTreeNodeVisitor
object- Parameters:
value
- the value
-
-
Method Detail
-
visit
public void visit(BaseTreeNode<T,K> treeNode)
- Specified by:
visit
in interfaceio.github.astrapi69.design.pattern.visitor.Visitor<T>
-
-