Package tech.jhipster.lite.error.domain
Class Assert.IntegerAsserter
java.lang.Object
tech.jhipster.lite.error.domain.Assert.IntegerAsserter
- Enclosing class:
- Assert
Asserter dedicated to Integer values (int and
Integer)-
Method Details
-
positive
Ensure that the input value is positive (0 is positive)- Returns:
- The current asserters
- Throws:
MissingMandatoryValueException- if the value is nullNumberValueTooLowException- if the value is negative
-
min
Ensure that the input value is over the given value- Parameters:
minValue- inclusive min value- Returns:
- The current asserter
- Throws:
MissingMandatoryValueException- if value is nullNumberValueTooLowException- if the value is under min
-
max
Ensure that the input value is under the given value- Parameters:
maxValue- inclusive max value- Returns:
- The current asserter
- Throws:
MissingMandatoryValueException- if value is nullNumberValueTooHighException- if the value is over max
-