public static enum TreeGraph.EdgePolicy extends java.lang.Enum<TreeGraph.EdgePolicy>
Enum Constant and Description |
---|
ANY
Any Edge is valid to add
|
RELATIVE_ONLY
A node may only have graph edges to siblings, parents, or children
|
SIBLING_ONLY
a node may only have graph edges between it and immediate siblings
|
Modifier and Type | Method and Description |
---|---|
static TreeGraph.EdgePolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TreeGraph.EdgePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TreeGraph.EdgePolicy ANY
public static final TreeGraph.EdgePolicy RELATIVE_ONLY
public static final TreeGraph.EdgePolicy SIBLING_ONLY
public static TreeGraph.EdgePolicy[] values()
for (TreeGraph.EdgePolicy c : TreeGraph.EdgePolicy.values()) System.out.println(c);
public static TreeGraph.EdgePolicy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is null