Class NumericPropertyValueComparator
java.lang.Object
org.alfresco.repo.action.evaluator.compare.NumericPropertyValueComparator
- All Implemented Interfaces:
PropertyValueComparator
Numeric property value comparator.
- Author:
- Roy Wetherall
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
NumericPropertyValueComparator
public NumericPropertyValueComparator()
-
-
Method Details
-
compare
public boolean compare(Serializable propertyValue, Serializable compareValue, ComparePropertyValueOperation operation) Description copied from interface:PropertyValueComparatorCompares the value of a property with the compare value, using the operator passed.- Specified by:
comparein interfacePropertyValueComparator- 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
- See Also:
-
registerComparator
Description copied from interface:PropertyValueComparatorCallback method to register this comparator with the evaluator.- Specified by:
registerComparatorin interfacePropertyValueComparator- Parameters:
evaluator- the compare property value evaluator- See Also:
-