public enum TreeTraversalMode extends Enum<TreeTraversalMode>
Enum Constant and Description |
---|
BREADTH_FIRST
Breath-first approach is used when the chart tree is traversed.
|
DEPTH_FIRST
Depth-first approach is used when the chart tree is traversed.
|
Modifier and Type | Method and Description |
---|---|
static TreeTraversalMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TreeTraversalMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TreeTraversalMode DEPTH_FIRST
public static final TreeTraversalMode BREADTH_FIRST
public static TreeTraversalMode[] values()
for (TreeTraversalMode c : TreeTraversalMode.values()) System.out.println(c);
public static TreeTraversalMode 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 null