Class Assert.BigDecimalAsserter
java.lang.Object
tech.jhipster.lite.shared.error.domain.Assert.BigDecimalAsserter
- Enclosing class:
Assert
Asserter dedicated to
BigDecimal assertions-
Method Summary
Modifier and TypeMethodDescriptionmax(long maxValue) Ensure that the input value is at most at max valuemax(BigDecimal maxValue) Ensure that the input value is at most at max valuemin(long minValue) Ensure that the input value is at least at min valuemin(BigDecimal minValue) Ensure that the input value is at least at min valuenotNull()Ensure that the input value is not nullover(long floor) Ensure that the input value is over the given floorover(BigDecimal 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(long ceil) Ensure that the input value is under the given ceilunder(BigDecimal 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 asserter
- Throws:
MissingMandatoryValueException- if the input value is nullNumberValueTooLowException- if the input value is negative
-
strictlyPositive
Ensure that the input value is strictly positive (0 is not strictly positive)- Returns:
- The current asserter
- Throws:
MissingMandatoryValueException- if the input value is nullNumberValueTooLowException- if the input value is negative
-
min
Ensure that the input value is at least at min value- Parameters:
minValue- inclusive min value- Returns:
- The current asserter
- Throws:
MissingMandatoryValueException- if the input value is nullNumberValueTooLowException- if the input value is under the min value
-
min
Ensure that the input value is at least at min value- Parameters:
minValue- inclusive min value- Returns:
- The current asserter
- Throws:
MissingMandatoryValueException- if the input or min value is nullNumberValueTooLowException- if the input value is under the min value
-
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 nullNumberValueTooLowException- if the value is under floor
-
over
Ensure that the input value is over the given floor- Parameters:
floor- exclusive floor value- Returns:
- The current asserter
- Throws:
MissingMandatoryValueException- if value or floor is nullNumberValueTooLowException- if the value is under floor
-
max
Ensure that the input value is at most at max value- Parameters:
maxValue- inclusive max value- Returns:
- The current asserter
- Throws:
MissingMandatoryValueException- if the input value is nullNumberValueTooHighException- if the input value is over max
-
max
Ensure that the input value is at most at max value- Parameters:
maxValue- inclusive max value- Returns:
- The current asserter
- Throws:
MissingMandatoryValueException- if the input or max value is nullNumberValueTooHighException- if the input 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 under floor
-
under
Ensure that the input value is under the given ceil- Parameters:
ceil- exclusive ceil value- Returns:
- The current asserter
- Throws:
MissingMandatoryValueException- if value or ceil is nullNumberValueTooHighException- if the value is under floor
-
notNull
Ensure that the input value is not null- Returns:
- The current asserter
- Throws:
MissingMandatoryValueException- if the input value is null
-