Class FieldEqualsValidator

java.lang.Object
com.atlassian.bitbucket.validation.FieldEqualsValidator
All Implemented Interfaces:
javax.validation.ConstraintValidator<FieldEquals,Object>

public class FieldEqualsValidator extends Object implements javax.validation.ConstraintValidator<FieldEquals,Object>
Validate that multiple fields are identical.
  • Constructor Details

    • FieldEqualsValidator

      public FieldEqualsValidator()
  • Method Details

    • initialize

      public void initialize(FieldEquals constraint)
      Specified by:
      initialize in interface javax.validation.ConstraintValidator<FieldEquals,Object>
    • isValid

      public boolean isValid(Object object, javax.validation.ConstraintValidatorContext context)
      Specified by:
      isValid in interface javax.validation.ConstraintValidator<FieldEquals,Object>