|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectunc.cdva.utils.Id
public class Id
Class which creates a unique Id for each of the interactive items of the game
| Constructor Summary | |
|---|---|
Id(Id copyId)
copy constructor, creates a deep copy. |
|
Id(long value)
Constructor which sets the Id to the sent value |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object rhs)
Checks if rhs is equal to this object |
long |
getValue()
|
int |
hashCode()
Returns a new number found based on the Id |
java.lang.String |
toString()
Turns the Id into a string |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Id(long value)
value - value to set to the Idpublic Id(Id copyId)
copyId - The id who's contents should be copied to
this new id obj.| Method Detail |
|---|
public long getValue()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object rhs)
equals in class java.lang.Objectrhs - 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 | ||||||||