|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-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. <p/> 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(Object o) Compare the ValueExtractor with another object to determine equality. |
Object |
extract(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. |
String |
toString() Provide a human-readable description of this ValueExtractor object. |
Method Detail |
---|
Object extract(Object oTarget)
oTarget
- an Object to retrieve the value fromClassCastException
- 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 valueIllegalArgumentException
- if this ValueExtractor cannot handle the passed object for any other reason; an implementor should include a descriptive messageboolean equals(Object o)
o
- the reference object with which to compareint hashCode()
Object.hashCode()
contract.String toString()
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |