|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.exceptions.id.LongExceptionId
public class LongExceptionId
An implementation where the exception identifier is modeled as a long value.
Constructor Summary | |
---|---|
LongExceptionId(long id) Default constructor that creates the identifier instance. |
Method Summary | |
---|---|
boolean |
equals(Object object) Returns true if the given object is semantically equal to the given object, false otherwise. |
Long |
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 LongExceptionId(long id)
id
- the value of the unique identifier.
Method Detail |
---|
public Long getId()
getId
in interface
ExceptionId<Long>
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<Long>
toString
in class
Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |