Interface InterfaceCheckerNumber<T extends InterfaceCheckerNumber<T>>
- Type Parameters:
T
- the type of the implementing checker (enables fluent API chaining)
- All Known Implementing Classes:
CheckerBigDecimal
,CheckerBigInteger
,CheckerDouble
,CheckerFloat
,CheckerInteger
,CheckerLong
public interface InterfaceCheckerNumber<T extends InterfaceCheckerNumber<T>>
Interface for fluent number checkers, providing common validation methods for numeric types.
Implementations of this interface allow for fluent assertions on numeric values, such as positivity, negativity, comparison, and zero checks.
-
Method Summary
Modifier and TypeMethodDescriptionisGreaterOrEqualTo
(Byte number) Asserts that the checked number is greater than or equal to the given value.isGreaterOrEqualTo
(Double number) Asserts that the checked number is greater than or equal to the given value.isGreaterOrEqualTo
(Float number) Asserts that the checked number is greater than or equal to the given value.isGreaterOrEqualTo
(Integer number) Asserts that the checked number is greater than or equal to the given value.isGreaterOrEqualTo
(Long number) Asserts that the checked number is greater than or equal to the given value.isGreaterOrEqualTo
(Short number) Asserts that the checked number is greater than or equal to the given value.isGreaterThan
(Byte number) Asserts that the checked number is strictly greater than the given value.isGreaterThan
(Double number) Asserts that the checked number is strictly greater than the given value.isGreaterThan
(Float number) Asserts that the checked number is strictly greater than the given value.isGreaterThan
(Integer number) Asserts that the checked number is strictly greater than the given value.isGreaterThan
(Long number) Asserts that the checked number is strictly greater than the given value.isGreaterThan
(Short number) Asserts that the checked number is strictly greater than the given value.isLessOrEqualTo
(Byte number) Asserts that the checked number is less than or equal to the given value.isLessOrEqualTo
(Double number) Asserts that the checked number is less than or equal to the given value.isLessOrEqualTo
(Float number) Asserts that the checked number is less than or equal to the given value.isLessOrEqualTo
(Integer number) Asserts that the checked number is less than or equal to the given value.isLessOrEqualTo
(Long number) Asserts that the checked number is less than or equal to the given value.isLessOrEqualTo
(Short number) Asserts that the checked number is less than or equal to the given value.isLessThan
(Byte number) Asserts that the checked number is strictly less than the given value.isLessThan
(Double number) Asserts that the checked number is strictly less than the given value.isLessThan
(Float number) Asserts that the checked number is strictly less than the given value.isLessThan
(Integer number) Asserts that the checked number is strictly less than the given value.isLessThan
(Long number) Asserts that the checked number is strictly less than the given value.isLessThan
(Short number) Asserts that the checked number is strictly less than the given value.Asserts that the checked number is strictly negative.Asserts that the checked number is negative or zero.Asserts that the checked number is strictly positive.Asserts that the checked number is positive or zero.isZero()
Asserts that the checked number is exactly zero.
-
Method Details
-
isPositive
T isPositive()Asserts that the checked number is strictly positive.- Returns:
- this checker instance for fluent chaining
-
isPositiveOrZero
T isPositiveOrZero()Asserts that the checked number is positive or zero.- Returns:
- this checker instance for fluent chaining
-
isNegative
T isNegative()Asserts that the checked number is strictly negative.- Returns:
- this checker instance for fluent chaining
-
isNegativeOrZero
T isNegativeOrZero()Asserts that the checked number is negative or zero.- Returns:
- this checker instance for fluent chaining
-
isZero
T isZero()Asserts that the checked number is exactly zero.- Returns:
- this checker instance for fluent chaining
-
isGreaterThan
-
isGreaterThan
-
isGreaterThan
-
isGreaterThan
-
isGreaterThan
-
isGreaterThan
-
isGreaterOrEqualTo
-
isGreaterOrEqualTo
-
isGreaterOrEqualTo
-
isGreaterOrEqualTo
-
isGreaterOrEqualTo
-
isGreaterOrEqualTo
-
isLessThan
-
isLessThan
-
isLessThan
-
isLessThan
-
isLessThan
-
isLessThan
-
isLessOrEqualTo
-
isLessOrEqualTo
-
isLessOrEqualTo
-
isLessOrEqualTo
-
isLessOrEqualTo
-
isLessOrEqualTo
-