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