public static enum DFS.Node.Color extends Enum<DFS.Node.Color>
Enum Constant and Description |
---|
BLACK
seen and done
|
GRAY
on the current path
|
WHITE
not seen
|
Modifier and Type | Method and Description |
---|---|
static DFS.Node.Color |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DFS.Node.Color[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DFS.Node.Color WHITE
public static final DFS.Node.Color GRAY
public static final DFS.Node.Color BLACK
public static DFS.Node.Color[] values()
for (DFS.Node.Color c : DFS.Node.Color.values()) System.out.println(c);
public static DFS.Node.Color 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 © 2010-2020 NM FinTech Ltd.. All Rights Reserved.