|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
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(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 from
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
IllegalArgumentException
- 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 compare
int hashCode()
Object.hashCode()
contract.
String toString()
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |