Module gen.tree

Class FindValuesIBaseTreeNodeVisitor<V,​K,​T extends IBaseTreeNode<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 java.lang.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 Detail

      • FindValuesIBaseTreeNodeVisitor

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

      • visit

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