Enum GraphWalk.Control

java.lang.Object
java.lang.Enum<GraphWalk.Control>
de.serra.graph_walker.GraphWalk.Control
All Implemented Interfaces:
Serializable, Comparable<GraphWalk.Control>
Enclosing class:
GraphWalk

public static enum GraphWalk.Control extends Enum<GraphWalk.Control>
Controls the traversal.
  • Enum Constant Details

    • STOP

      public static final GraphWalk.Control STOP
      Immediatly stop the traversal.
    • CONTINUE

      public static final GraphWalk.Control CONTINUE
      The default. Continue the traversal as usual.
    • CONTINUE_BUT_DONT_GO_DEEPER

      public static final GraphWalk.Control CONTINUE_BUT_DONT_GO_DEEPER
      Don't visit any members or fields of the curent object.
    • CONTINUE_BUT_DONT_GO_SUPER

      public static final GraphWalk.Control CONTINUE_BUT_DONT_GO_SUPER
      Don't visit any (more) super classes of the current object.
  • Method Details

    • values

      public static GraphWalk.Control[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static GraphWalk.Control valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null