|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--viceroy.Relative
Represent a type of a relative in the viceroy network: parent,left child or right child. This is a type-safe enum implementation.
| Field Summary | |
static Relative |
LEFT_CHILD
Relative - left child |
private java.lang.String |
name
The type's name |
private static int |
nextOrdinal
|
private int |
ordinal
|
static Relative |
PARENT
Relative - parent |
private static Relative[] |
PRIVATE_VALUES
The Relative that can be in our system |
static Relative |
RIGHT_CHILD
Relative - right child |
static java.util.List |
VALUES
An unmodifiable list of the Relatives |
| Constructor Summary | |
protected |
Relative(java.lang.String _name)
A constructor. |
| Method Summary | |
boolean |
equals(java.lang.Object that)
|
int |
hashCode()
|
(package private) java.lang.Object |
readResolve()
|
java.lang.String |
toString()
toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
private final transient java.lang.String name
public static final Relative PARENT
public static final Relative LEFT_CHILD
public static final Relative RIGHT_CHILD
private static final Relative[] PRIVATE_VALUES
public static final java.util.List VALUES
private static int nextOrdinal
private final int ordinal
| Constructor Detail |
protected Relative(java.lang.String _name)
_name - The name of the type| Method Detail |
public java.lang.String toString()
toString in class java.lang.Objectpublic final boolean equals(java.lang.Object that)
equals in class java.lang.Objectpublic final int hashCode()
hashCode in class java.lang.Object
java.lang.Object readResolve()
throws java.io.ObjectStreamException
java.io.ObjectStreamException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||