public enum VisitedState extends Enum<VisitedState>
Note that this enum only declares one value. The value NOT_VISITED for unvisited nodes/states is identified
with null.
| Enum Constant and Description |
|---|
VISITED
Nodes that have already been visited.
|
| Modifier and Type | Field and Description |
|---|---|
static VisitedState |
NOT_VISITED
Nodes that have not yet been visited.
|
| Modifier and Type | Method and Description |
|---|---|
static VisitedState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VisitedState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VisitedState VISITED
public static final VisitedState NOT_VISITED
public static VisitedState[] values()
for (VisitedState c : VisitedState.values()) System.out.println(c);
public static VisitedState valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2018. All rights reserved.