Class IntegerValidator

java.lang.Object
com.atlassian.bitbucket.validation.IntegerValidator
Direct Known Subclasses:
IntValidator, NonNegativeIntValidator

public class IntegerValidator extends Object
Validate a value can be converted to an Integer, optionally validating whether the number is positive.
  • Field Details

    • allowNegative

      protected boolean allowNegative
  • Constructor Details

    • IntegerValidator

      public IntegerValidator()
  • Method Details

    • isValid

      public boolean isValid(Object value, javax.validation.ConstraintValidatorContext context)