Interface PropertyValueComparator

All Known Implementing Classes:
DatePropertyValueComparator, NumericPropertyValueComparator, TextPropertyValueComparator

public interface PropertyValueComparator
Property value comparator interface
Author:
Roy Wetherall
  • Method Details

    • registerComparator

      void registerComparator(ComparePropertyValueEvaluator evaluator)
      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 value
      compareValue - the compare value
      operation - the operation used to compare the two values
      Returns:
      the result of the comparison, true if successful false otherwise