Package tech.jhipster.lite.error.domain
Class Assert.FloatAsserter
java.lang.Object
tech.jhipster.lite.error.domain.Assert.FloatAsserter
- Enclosing class:
- Assert
Asserter dedicated to float values (float and
Float)-
Method Summary
Modifier and TypeMethodDescriptionmax(float maxValue) Ensure that the input value is under the given valuemin(float minValue) Ensure that the input value is over the given valueover(float 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(float 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
-