|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.1.6) E22562-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.apps.fnd.applcore.globalSearch.ui.ResultComparator
public final class ResultComparator
A comparator to compare 2 SearchResultItems. A SearchResultItem comes before another if it's defined attribute compares less than the another's. In the case where one has an attribute and the other does not, the one with the attribute wins. If neither has the attribute, then a descending relevance (default) comparison is done.
Constructor Summary | |
---|---|
ResultComparator(java.lang.String attributeName,
boolean asc)
Construct this comparitor. |
Method Summary | |
---|---|
int |
compare(java.lang.Object object1,
java.lang.Object object2)
Compares two SearchResultItem objects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public ResultComparator(java.lang.String attributeName, boolean asc)
attributeName
- name of attribute to compare.asc
- are we comparing in ascending order or descending.Method Detail |
---|
public int compare(java.lang.Object object1, java.lang.Object object2)
compare
in interface java.util.Comparator
object1
- the first result item to be comparedobject2
- the second result item to be compared
|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.1.6) E22562-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |