Module gen.tree

Class MergeTreeNodesVisitor<V,​K,​T extends IBaseTreeNode<V,​K,​T>>

  • 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<T>

    public class MergeTreeNodesVisitor<V,​K,​T extends IBaseTreeNode<V,​K,​T>>
    extends BaseMergeTreeNodesVisitor<V,​K,​T>
    implements io.github.astrapi69.design.pattern.visitor.Visitor<T>
    This visitor visits all IBaseTreeNode objects and merges all nodes to the given IBaseTreeNode object. This means only the given IBaseTreeNode object will be changed and the IBaseTreeNode object that implements this visitor will be not changed
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.github.astrapi69.design.pattern.visitor.Visitor

        visit
    • Constructor Detail

      • MergeTreeNodesVisitor

        public MergeTreeNodesVisitor​(@NonNull
                                     T mergeWith)
        Instantiates a new MergeTreeNodesVisitor object
        Parameters:
        mergeWith - the IBaseTreeNode object