public static enum Node.TreeTraversal extends Enum<Node.TreeTraversal>
Enum Constant and Description |
---|
BREADTHFIRST |
DIRECT_CHILDREN |
PARENTS |
POSTORDER |
PREORDER |
Modifier and Type | Method and Description |
---|---|
static Node.TreeTraversal |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Node.TreeTraversal[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Node.TreeTraversal PREORDER
public static final Node.TreeTraversal BREADTHFIRST
public static final Node.TreeTraversal POSTORDER
public static final Node.TreeTraversal PARENTS
public static final Node.TreeTraversal DIRECT_CHILDREN
public static Node.TreeTraversal[] values()
for (Node.TreeTraversal c : Node.TreeTraversal.values()) System.out.println(c);
public static Node.TreeTraversal 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 © 2007–2023. All rights reserved.