|
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 |
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 the hashCode()
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 fromjava.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 typeWrapperException
- if this ValueExtractor encounters an exception in the course of extracting the valuejava.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 compareint hashCode()
Object.hashCode()
contract.java.lang.String toString()
|
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 |