Enum Class DfsEdgeTraverser.TargetState
- All Implemented Interfaces:
Serializable, Comparable<DfsEdgeTraverser.TargetState>, Constable
- Enclosing class:
DfsEdgeTraverser
The state of the target of an edge when
visitEdge reports the edge.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe search has reached the target and left it, or a stopped run left it on its path.The target is on the current path - the source itself or one of its ancestors in the search - so the edge closes a cycle.The search has not reached the target yet. -
Method Summary
Modifier and TypeMethodDescriptionstatic DfsEdgeTraverser.TargetStateReturns the enum constant of this class with the specified name.static DfsEdgeTraverser.TargetState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNVISITED
The search has not reached the target yet. -
ON_STACK
The target is on the current path - the source itself or one of its ancestors in the search - so the edge closes a cycle. -
FINISHED
The search has reached the target and left it, or a stopped run left it on its path.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-