PropertiesComparisonRule constructor

PropertiesComparisonRule(
  1. String property1,
  2. String operation,
  3. String property2
)

Creates a new validation rule and sets its arguments.

  • property1 a name of the first property to compare.
  • operation a comparison operation: '==' ('=', 'EQ'), '!= ' ('<>', 'NE'); '<'/'>' ('LT'/'GT'), '<='/'>=' ('LE'/'GE'); 'LIKE'.
  • property2 a name of the second property to compare.

See ObjectComparator.compare

Implementation

PropertiesComparisonRule(String property1, String operation, String property2)
    : _property1 = property1,
      _property2 = property2,
      _operation = operation;