|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.comparator.ExtractorComparator
public class ExtractorComparator
Comparator implementation that uses specified ValueExtractor
to extract value(s) to be used for comparison.
Constructor Summary | |
---|---|
ExtractorComparator() Default constructor (for PortableObject). |
|
ExtractorComparator(ValueExtractor extractor) Construct a ExtractorComparator with the specified extractor. |
Method Summary | |
---|---|
int |
compare(java.lang.Object o1, java.lang.Object o2) Compares extracted values (by specified ValueExtractor) of given arguments for order. |
void |
readExternal(PofReader in) Restore the contents of a user type instance by reading its state using the specified PofReader object. |
void |
writeExternal(PofWriter out) Save the contents of a POF user type instance by writing its state using the specified PofWriter object. |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public ExtractorComparator()
public ExtractorComparator(ValueExtractor extractor)
extractor
- the ValueExtractor to use by this filterMethod Detail |
---|
public int compare(java.lang.Object o1, java.lang.Object o2)
compare
in interface java.util.Comparator
o1
- the first object to be comparedo2
- the second object to be comparedjava.lang.ClassCastException
- if the arguments' types prevent them from being compared by this Comparator.public void readExternal(PofReader in) throws java.io.IOException
readExternal
in interface PortableObject
in
- the PofReader from which to read the object's statejava.io.IOException
- if an I/O error occurspublic void writeExternal(PofWriter out) throws java.io.IOException
writeExternal
in interface PortableObject
out
- the PofWriter to which to write the object's statejava.io.IOException
- if an I/O error occurs
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |