- java.lang.Object
-
- java.lang.Enum<NodeVisitState>
-
- life.expert.common.graph.NodeVisitState
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<NodeVisitState>,java.lang.constant.Constable
public enum NodeVisitState extends java.lang.Enum<NodeVisitState>
An enum representing the state of a node during DFS.PENDINGmeans that the node is on the stack of the DFS, whileCOMPLETEmeans that the node and all its successors have been already explored. Any node that has not been explored hasNONEor has not state element in Map .
-
-
Method Summary
Modifier and Type Method Description static NodeVisitStatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static NodeVisitState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final NodeVisitState NONE
-
PENDING
public static final NodeVisitState PENDING
-
COMPLETE
public static final NodeVisitState COMPLETE
-
-
Method Detail
-
values
public static NodeVisitState[] 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 NodeVisitState valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-