|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--universe.common.database.Index
This is the base class for all ID classes. All ID classes are used to access objects in the database.
Field Summary | |
private int |
value
The value of the ID. |
Constructor Summary | |
protected |
Index(int in)
Used to create the Index object. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
This method compares two Index objects. |
int |
get()
Returns the ID of this object. |
int |
hashCode()
Use the index to hash these objects. |
void |
increment()
Increments the ID of this object. |
protected void |
set(int in)
Sets the ID of this object. |
java.lang.String |
toString()
The String equivalent is just the ID number. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private int value
Constructor Detail |
protected Index(int in)
in
- ID for this objectMethod Detail |
public int get()
protected void set(int in)
in
- The IDpublic void increment()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Object to compare.
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |