- 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 allBaseTreeNodeobjects and checks if the value equals with the value of this visitor
-
-
Constructor Summary
Constructors Constructor Description FindValuesBaseTreeNodeVisitor(T value)Instantiates a newFindValuesBaseTreeNodeVisitorobject
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvisit(BaseTreeNode<T,K> treeNode)
-
-
-
Constructor Detail
-
FindValuesBaseTreeNodeVisitor
public FindValuesBaseTreeNodeVisitor(T value)
Instantiates a newFindValuesBaseTreeNodeVisitorobject- Parameters:
value- the value
-
-
Method Detail
-
visit
public void visit(BaseTreeNode<T,K> treeNode)
- Specified by:
visitin interfaceio.github.astrapi69.design.pattern.visitor.Visitor<T>
-
-