Class NumericPropertyValueComparator
- java.lang.Object
-
- org.alfresco.repo.action.evaluator.compare.NumericPropertyValueComparator
-
- All Implemented Interfaces:
PropertyValueComparator
public class NumericPropertyValueComparator extends java.lang.Object implements PropertyValueComparator
Numeric property value comparator.- Author:
- Roy Wetherall
-
-
Constructor Summary
Constructors Constructor Description NumericPropertyValueComparator()
-
Method Summary
All Methods Instance Methods Concrete 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
-
compare
public boolean compare(java.io.Serializable propertyValue, java.io.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:
PropertyValueComparator.compare(java.io.Serializable, java.io.Serializable, org.alfresco.repo.action.evaluator.compare.ComparePropertyValueOperation)
-
registerComparator
public void registerComparator(ComparePropertyValueEvaluator evaluator)
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:
PropertyValueComparator.registerComparator(org.alfresco.repo.action.evaluator.ComparePropertyValueEvaluator)
-
-