Interface PropertyValueComparator
- All Known Implementing Classes:
DatePropertyValueComparator,NumericPropertyValueComparator,TextPropertyValueComparator
public interface PropertyValueComparator
Property value comparator interface
- Author:
- Roy Wetherall
-
Method Summary
Modifier and TypeMethodDescriptionbooleancompare(Serializable propertyValue, 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 Details
-
registerComparator
Callback method to register this comparator with the evaluator.- Parameters:
evaluator- the compare property value evaluator
-
compare
boolean compare(Serializable propertyValue, 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
-