|
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 | |||||||
java.lang.Objectcom.tangosol.util.Base
com.tangosol.util.BitHelper
com.tangosol.util.ExternalizableHelper
com.tangosol.util.filter.ExtractorFilter
com.tangosol.util.filter.ValueChangeEventFilter
public class ValueChangeEventFilter
Filter which evaluates the content of a MapEvent values based on the specified value extractor. This filter evaluates to true only for update events that change the value of an extracted attribute.
Example: a filter that evaluates to true if there is an update to an Employee object that changes a value of the LastName property.
new ValueChangeEventFilter("LastName");
MapEventFilter| Field Summary |
|---|
| Fields inherited from class com.tangosol.util.filter.ExtractorFilter |
|---|
EVAL_COST, m_extractor |
| Constructor Summary | |
|---|---|
ValueChangeEventFilter()
Default constructor (necessary for the ExternalizableLite interface). |
|
ValueChangeEventFilter(String sMethod)
Construct a ValueChangeEventFilter that evaluates MapEvent values based on the specified method name. |
|
ValueChangeEventFilter(ValueExtractor extractor)
Construct a ValueChangeEventFilter that evaluates MapEvent values based on the specified extractor. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Compare the ValueChangeEventFilter with another object to determine equality. |
boolean |
evaluate(Object o)
Apply the test to the object. |
protected boolean |
evaluateExtracted(Object oExtracted)
Evaluate the specified extracted value. |
int |
hashCode()
Determine a hash value for the ValueChangeEventFilter object according to the general Object.hashCode() contract. |
String |
toString()
Return a human-readable description for this Filter. |
| Methods inherited from class com.tangosol.util.filter.ExtractorFilter |
|---|
evaluateEntry, extract, getValueExtractor, readExternal, readExternal, writeExternal, writeExternal |
| Methods inherited from class com.tangosol.util.BitHelper |
|---|
countBits, countBits, countBits, indexOfLSB, indexOfLSB, indexOfLSB, indexOfMSB, indexOfMSB, indexOfMSB, toBitString, toBitString, toBitString |
| Constructor Detail |
|---|
public ValueChangeEventFilter()
public ValueChangeEventFilter(ValueExtractor extractor)
extractor - ValueExtractor to extract MapEvent valuespublic ValueChangeEventFilter(String sMethod)
sMethod - the name of the method to invoke via reflection| Method Detail |
|---|
public boolean evaluate(Object o)
evaluate in interface Filterevaluate in class ExtractorFilterprotected boolean evaluateExtracted(Object oExtracted)
evaluateExtracted in class ExtractorFilteroExtracted - an extracted value to evaluatepublic boolean equals(Object o)
public int hashCode()
Object.hashCode() contract.
public 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 | |||||||