|
CodeBeamer 5.4.0.1-RC API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.intland.codebeamer.persistence.dto.base.IdentifiableDto
public class IdentifiableDto
All DTO classes with id property must extend this.
Nested Class Summary | |
---|---|
static class |
IdentifiableDto.IdComparator
A special Comparator implementation to compare two IdentifiableDtos by id |
Constructor Summary | |
---|---|
IdentifiableDto()
|
|
IdentifiableDto(IdentifiableDto base)
|
|
IdentifiableDto(java.lang.Integer id)
|
Method Summary | |
---|---|
java.lang.Object |
clone()
|
static int |
compare(IdentifiableDto i1,
IdentifiableDto i2)
Compare two IdentifiableDtos by id. |
static int |
compareInteger(java.lang.Integer i1,
java.lang.Integer i2)
Compare two Integers that may be null |
int |
compareTo(java.lang.Object obj)
|
static boolean |
equals(IdentifiableDto i1,
IdentifiableDto i2)
Check two IdentifiableDtos for ID equality. |
boolean |
equals(java.lang.Object obj)
|
java.lang.Integer |
getId()
Returns its unique identifier. |
int |
hashCode()
|
static int |
hashCode(IdentifiableDto obj)
Get the ID based hash code of the specified IdentifiableDto |
void |
setId(java.lang.Integer id)
Sets its unique identifier. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IdentifiableDto()
public IdentifiableDto(java.lang.Integer id)
public IdentifiableDto(IdentifiableDto base)
Method Detail |
---|
public java.lang.Integer getId()
public void setId(java.lang.Integer id)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public static int hashCode(IdentifiableDto obj)
obj
- is the IdentifiableDto whose ID hashcode to get
public static boolean equals(IdentifiableDto i1, IdentifiableDto i2)
i1
- is the first IdentifiableDto, or nulli2
- is the second IdentifiableDto, or null
public static int compare(IdentifiableDto i1, IdentifiableDto i2)
i1
- is the first IdentifiableDto, or nulli2
- is the second IdentifiableDto, or null
public static int compareInteger(java.lang.Integer i1, java.lang.Integer i2)
i1
- is the first IdentifiableDto, or nulli2
- is the second IdentifiableDto, or null
|
CodeBeamer 5.4.0.1-RC API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |