|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.comparator.SafeComparator
com.tangosol.util.comparator.InverseComparator
public class InverseComparator
Comparator that reverses the result of another comparator.
| Field Summary |
|---|
| Fields inherited from class com.tangosol.util.comparator.SafeComparator |
|---|
INSTANCE, m_comparator |
| Constructor Summary | |
|---|---|
InverseComparator()Default constructor (for ExternalizableLite and PortableObject). |
|
InverseComparator(java.util.Comparator comparator)Construct an InverseComparator. |
|
| Method Summary | |
|---|---|
int |
compare(java.lang.Object o1, java.lang.Object o2)Use the wrapped Comparator to compare the two arguments for order and negate the result. |
int |
compareEntries(QueryMap.Entry entry1, QueryMap.Entry entry2)Compare two entries using the underlying comparator and negate the result. |
boolean |
equals(java.lang.Object o)Compare the InverseComparator with another object to determine equality. |
| Methods inherited from class com.tangosol.util.comparator.SafeComparator |
|---|
compareSafe, getComparator, hashCode, isKeyComparator, isKeyComparator, readExternal, readExternal, toString, writeExternal, writeExternal |
| Constructor Detail |
|---|
public InverseComparator()
public InverseComparator(java.util.Comparator comparator)
comparator - the comparator whose results are inverted by this Comparator| Method Detail |
|---|
public int compare(java.lang.Object o1,
java.lang.Object o2)
compare in interface java.util.Comparatorcompare in class SafeComparatoro1 - the first object to be comparedo2 - the second object to be compared
public int compareEntries(QueryMap.Entry entry1,
QueryMap.Entry entry2)
compareEntries in interface QueryMapComparatorcompareEntries in class SafeComparatorentry1 - the first entry to compare values from; read-onlyentry2 - the second entry to compare values from; read-onlypublic boolean equals(java.lang.Object o)
equals in interface java.util.Comparatorequals in class SafeComparatoro - the other comparator
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||