|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for implementing comparison logic. Objects that implement this interface establish the criteria for ranking the objects being compared.
Field Summary | |
static int |
EQUIVALENT
Indicates that two objects being compared have the same ranking. |
static int |
IN_ORDER
Indicates that the first object being compared is ranked before the second. |
static int |
REVERSE_ORDER
Indicates that the second object being compared is ranked before the first. |
Method Summary | |
int |
compare(Object o1,
Object o2)
Determines the comparative ranking of two objects. |
Field Detail |
public static final int IN_ORDER
EbiComparator.compare(Object, Object)
public static final int EQUIVALENT
EbiComparator.compare(Object, Object)
public static final int REVERSE_ORDER
EbiComparator.compare(Object, Object)
Method Detail |
public int compare(Object o1, Object o2)
EbiComparator.IN_ORDER
if o1 followed by o2 is the desired order
EbiComparator.EQUIVALENT
if o1 and o2 have equivalent ranking values
EbiComparator.REVERSE_ORDER
if o1 followed by o2 is the reverse of the desired order
o1
- The first object being compared.o2
- The second object being compared.
|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |