PropertiesComparisonRule constructor

PropertiesComparisonRule(String property1 String operation 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