|
Oracle® Coherence Java API Reference v3.5 E14977-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ValueExtractor
ValueExtractor is used to both extract values (for example, for sorting or filtering) from an object, and to provide an identity for that extraction.
Important Note: all classes that implement ValueExtractor interface must explicitly implement thehashCode()
and equals()
methods in a way that is based solely on the object's serializable state.
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Compare the ValueExtractor with another object to determine equality. |
java.lang.Object |
extract(java.lang.Object oTarget)
Extract the value from the passed object. |
int |
hashCode()
Determine a hash value for the ValueExtractor object according to the general Object.hashCode() contract. |
java.lang.String |
toString()
Provide a human-readable description of this ValueExtractor object. |
Method Detail |
---|
java.lang.Object extract(java.lang.Object oTarget)
oTarget
- an Object to retrieve the value from
java.lang.ClassCastException
- if this ValueExtractor is incompatible with
the passed object to extract a value from and the
implementation requires the passed object to be of a
certain type
WrapperException
- if this ValueExtractor encounters an exception
in the course of extracting the value
java.lang.IllegalArgumentException
- if this ValueExtractor cannot handle
the passed object for any other reason; an implementor should
include a descriptive messageboolean equals(java.lang.Object o)
o
- the reference object with which to compare
int hashCode()
Object.hashCode()
contract.
java.lang.String toString()
|
Oracle® Coherence Java API Reference v3.5 E14977-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |