Class DFSVisitorAdapter<T>

  • All Implemented Interfaces:
    DFSVisitor<T>

    public abstract class DFSVisitorAdapter<T>
    extends Object
    implements DFSVisitor<T>
    Author:
    dmitry.neverov
    • Constructor Detail

      • DFSVisitorAdapter

        public DFSVisitorAdapter()
    • Method Detail

      • discover

        public boolean discover​(@NotNull
                                T node)
        Description copied from interface: DFSVisitor
        Called when the node first discovered
        Specified by:
        discover in interface DFSVisitor<T>
        Parameters:
        node - discovered node
        Returns:
        true if node's parents should be added to the search, false otherwise
      • finish

        public void finish​(@NotNull
                           T node)
        Description copied from interface: DFSVisitor
        Called when node and all its parents are processed
        Specified by:
        finish in interface DFSVisitor<T>
        Parameters:
        node - processed node