|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.exceptions.id.UuidExceptionId
public class UuidExceptionId
An implementation where the exception identifier is modelled as an UUID.
Constructor Summary | |
---|---|
UuidExceptionId() Constructor to create an instance with a random UUID. |
|
UuidExceptionId(UUID uuid) Default constructor that creates an instance with the given UUID. |
Method Summary | |
---|---|
boolean |
equals(Object object) Returns true if the given object is semantically equal to the given object, false otherwise. |
UUID |
getId() Returns the implementing type of the identifier. |
int |
hashCode() Returns the hashcode of the object. |
String |
toString() Returns the UUID as a string. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UuidExceptionId()
public UuidExceptionId(UUID uuid)
uuid
- the unique identifier to use for an exception.
Method Detail |
---|
public UUID getId()
getId
in interface
ExceptionId<UUID>
ExceptionId.getId()
public boolean equals(Object object)
true
if the given object is semantically equal to the given object,
false
otherwise.
Two instances o this class are equal if they have the same identifier.
equals
in class
Object
object
- the instance to compare to.
true
if the given object is semantically equal to the given object,
false
otherwise.
public int hashCode()
It is the hashcode of the UUID instance.
hashCode
in class
Object
public String toString()
toString
in interface
ExceptionId<UUID>
toString
in class
Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |