Interface PropertyValueComparator
-
- All Known Implementing Classes:
DatePropertyValueComparator,NumericPropertyValueComparator,TextPropertyValueComparator
public interface PropertyValueComparatorProperty value comparator interface- Author:
- Roy Wetherall
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancompare(java.io.Serializable propertyValue, java.io.Serializable compareValue, ComparePropertyValueOperation operation)Compares the value of a property with the compare value, using the operator passed.voidregisterComparator(ComparePropertyValueEvaluator evaluator)Callback method to register this comparator with the evaluator.
-
-
-
Method Detail
-
registerComparator
void registerComparator(ComparePropertyValueEvaluator evaluator)
Callback method to register this comparator with the evaluator.- Parameters:
evaluator- the compare property value evaluator
-
compare
boolean compare(java.io.Serializable propertyValue, java.io.Serializable compareValue, ComparePropertyValueOperation operation)Compares the value of a property with the compare value, using the operator passed.- Parameters:
propertyValue- the property valuecompareValue- the compare valueoperation- the operation used to compare the two values- Returns:
- the result of the comparison, true if successful false otherwise
-
-