Interface Traverser.Visitor

Enclosing class:
Traverser
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@Deprecated @FunctionalInterface public static interface Traverser.Visitor
Deprecated.
Use Traverser.traverse(Object, Set, Consumer) instead.
A visitor interface to process each object encountered during traversal.

Note: This interface is deprecated in favor of using Consumer<Traverser.NodeVisit> with the new traverse method.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
    Processes an encountered object.
  • Method Details

    • process

      void process(Object o)
      Deprecated.
      Processes an encountered object.
      Parameters:
      o - the object to process