Module gen.tree

Class FindValuesBaseTreeNodeVisitor<T,​K>

  • Type Parameters:
    T - the generic type of the value
    K - 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 all BaseTreeNode objects and checks if the value equals with the value of this visitor
    • Constructor Detail

      • FindValuesBaseTreeNodeVisitor

        public FindValuesBaseTreeNodeVisitor​(T value)
        Instantiates a new FindValuesBaseTreeNodeVisitor object
        Parameters:
        value - the value
    • Method Detail

      • visit

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