|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectunc.cdva.utils.TaggedObject
public abstract class TaggedObject
A skeleton for a taggable object, if the object can not extend this object, then it should implement the Taggable interface.
Constructor Summary | |
---|---|
TaggedObject()
Constructor which creates a new Id for the newly created object |
Method Summary | |
---|---|
static Id |
createId()
Creates a unique id. |
boolean |
equals(java.lang.Object o)
Checks if object o is equal to this object |
Id |
getId()
|
int |
hashCode()
Turns the Id into a new value to be used for further identification of this object |
void |
setId(Id newId)
Sets the Id to be equal to the Id sent |
void |
setId(long newId)
Sets the Id to the new long value sent |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TaggedObject()
Method Detail |
---|
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public Id getId()
getId
in interface Taggable
public void setId(long newId)
newId
- public void setId(Id newId)
newId
- public static Id createId()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |