|
Enterprise Information Portal APIs |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
int |
compare(java.lang.Object first,
java.lang.Object second)
Compares an object with another. |
boolean |
equals(java.lang.Object first,
java.lang.Object second)
Compares an object with another for equality. |
java.lang.Object |
getKey(java.lang.Object anObject)
Extract the key of a given object. |
boolean |
greaterThan(java.lang.Object first,
java.lang.Object second)
Compares an object if it is greater than another. |
boolean |
lessThan(java.lang.Object first,
java.lang.Object second)
Compares an object if it is less than another. |
void |
sort(java.lang.Object[] arrayOfObjects,
boolean order)
Sorts an array of objects based on their keys using the one of the above comparison functions. |
Method Detail |
public java.lang.Object getKey(java.lang.Object anObject) throws DKUsageError
anObject
- the object which the key will be extracted.DKUsageError
- the given object is not of the right type or structure.public int compare(java.lang.Object first, java.lang.Object second) throws DKUsageError
first
- the first object to compare.second
- the second object to compare.DKUsageError
- the objects are not of the right type or structure.public boolean lessThan(java.lang.Object first, java.lang.Object second) throws DKUsageError
first
- the first object to compare.second
- the second object to compare.DKUsageError
- the objects are not of the right type or structure.getKey(java.lang.Object)
public boolean greaterThan(java.lang.Object first, java.lang.Object second) throws DKUsageError
first
- the first object to compare.second
- the second object to compare.DKUsageError
- the objects are not of the right type or structure.getKey(java.lang.Object)
public boolean equals(java.lang.Object first, java.lang.Object second) throws DKUsageError
first
- the first object to compare.second
- the second object to compare.DKUsageError
- the objects are not of the right type or structure.getKey(java.lang.Object)
public void sort(java.lang.Object[] arrayOfObjects, boolean order) throws DKUsageError
arrayOfObjects
- an array of object to be sorted.order
- the desired order, true = ascending, false = descending.DKUsageError
- the objects are not of the right type or structure.getKey(java.lang.Object)
|
EIP Java APIs | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |