java.lang.Objectjava.lang.Enum<Relative>
Relative
public enum Relative
Relative is an enumeration of the relationships among binary nodes. The relationships are {leftChild, rightChild, parent, root}
| Enum Constant Summary | |
|---|---|
leftChild
|
|
parent
|
|
rightChild
|
|
root
|
|
| Method Summary | |
|---|---|
static Relative |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Relative[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Relative leftChild
public static final Relative rightChild
public static final Relative parent
public static final Relative root
| Method Detail |
|---|
public static Relative[] values()
for (Relative c : Relative.values()) System.out.println(c);
public static Relative 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 name
java.lang.NullPointerException - if the argument is null