|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.tmaj.beans.data.StaticEnumeration
public final class StaticEnumeration
Represent a record in a static Lookup table. For example, BlockFixations is a static Lookup table for Blocks. An instance of this class may represent a record that has a BlockFixationID#2 and a value of "Formalin".
Constructor Summary | |
---|---|
StaticEnumeration(int id,
java.lang.String value)
Initializes this class. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
|
boolean |
equals(java.lang.Object obj)
|
int |
getID()
Returns the ID of the enumeration |
int |
hashCode()
|
java.lang.String |
toString()
Returns the name of the enumeration |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StaticEnumeration(int id, java.lang.String value)
id
- the value of the "primary key" column in the lookup table (for example, "#2")value
- the value of the "name" column in the lookup table (for example, "Formalin")Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public int getID()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |