com.tractrac.clientmodule.details
Class IdBase

java.lang.Object
  extended by com.tractrac.clientmodule.details.Attachments
      extended by com.tractrac.clientmodule.details.IdBase
Direct Known Subclasses:
IdBaseNamed

public class IdBase
extends Attachments

Version:
2.0
Author:
TracTrac

Method Summary
 boolean equals(java.lang.Object obj)
          Implements equals for this object in terms of its unique id's.
 java.util.UUID getId()
          Returns the unique id of this object.
 int hashCode()
          Returns a hash code for this object in terms of its unique id.
 
Methods inherited from class com.tractrac.clientmodule.details.Attachments
getAttachment, setAttachment
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getId

public java.util.UUID getId()
Returns the unique id of this object. Should generally only be used internally.

Returns:
the unique id of this object.

equals

public boolean equals(java.lang.Object obj)
Implements equals for this object in terms of its unique id's.

Overrides:
equals in class java.lang.Object
Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Returns a hash code for this object in terms of its unique id.

Overrides:
hashCode in class java.lang.Object
Returns:
the hash code.
See Also:
Object.hashCode()