Class Assert.DoubleAsserter
java.lang.Object
tech.jhipster.lite.shared.error.domain.Assert.DoubleAsserter
- Enclosing class:
Assert
Asserter dedicated to double values (double and
Double)-
Method Summary
Modifier and TypeMethodDescriptionmax(double maxValue) Ensure that the input value is under the given valuemin(double minValue) Ensure that the input value is over the given valueover(double floor) Ensure that the input value is over the given floorpositive()Ensure that the input value is positive (0 is positive)Ensure that the input value is strictly positive (0 is not strictly positive)under(double ceil) Ensure that the input value is under the given ceil
-
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
-
strictlyPositive
Ensure that the input value is strictly positive (0 is not strictly 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
-
over
Ensure that the input value is over the given floor- Parameters:
floor- exclusive floor value- Returns:
- The current asserter
- Throws:
MissingMandatoryValueException- if value is nullNumberValueTooHighException- if the value is under floor
-
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
-
under
Ensure that the input value is under the given ceil- Parameters:
ceil- exclusive ceil value- Returns:
- The current asserter
- Throws:
MissingMandatoryValueException- if value is nullNumberValueTooHighException- if the value is over ceil
-