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 Type
    Method
    Description
    Asserts that the checked number is greater than or equal to the given value.
    Asserts that the checked number is greater than or equal to the given value.
    Asserts that the checked number is greater than or equal to the given value.
    Asserts that the checked number is greater than or equal to the given value.
    Asserts that the checked number is greater than or equal to the given value.
    Asserts that the checked number is greater than or equal to the given value.
    Asserts that the checked number is strictly greater than the given value.
    Asserts that the checked number is strictly greater than the given value.
    Asserts that the checked number is strictly greater than the given value.
    Asserts that the checked number is strictly greater than the given value.
    Asserts that the checked number is strictly greater than the given value.
    Asserts that the checked number is strictly greater than the given value.
    Asserts that the checked number is less than or equal to the given value.
    Asserts that the checked number is less than or equal to the given value.
    Asserts that the checked number is less than or equal to the given value.
    Asserts that the checked number is less than or equal to the given value.
    Asserts that the checked number is less than or equal to the given value.
    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.
    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.
    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.
    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

      T isGreaterThan(Byte number)
      Asserts that the checked number is strictly greater than the given value.
      Parameters:
      number - the value to compare against
      Returns:
      this checker instance for fluent chaining
    • isGreaterThan

      T isGreaterThan(Short number)
      Asserts that the checked number is strictly greater than the given value.
      Parameters:
      number - the value to compare against
      Returns:
      this checker instance for fluent chaining
    • isGreaterThan

      T isGreaterThan(Integer number)
      Asserts that the checked number is strictly greater than the given value.
      Parameters:
      number - the value to compare against
      Returns:
      this checker instance for fluent chaining
    • isGreaterThan

      T isGreaterThan(Long number)
      Asserts that the checked number is strictly greater than the given value.
      Parameters:
      number - the value to compare against
      Returns:
      this checker instance for fluent chaining
    • isGreaterThan

      T isGreaterThan(Float number)
      Asserts that the checked number is strictly greater than the given value.
      Parameters:
      number - the value to compare against
      Returns:
      this checker instance for fluent chaining
    • isGreaterThan

      T isGreaterThan(Double number)
      Asserts that the checked number is strictly greater than the given value.
      Parameters:
      number - the value to compare against
      Returns:
      this checker instance for fluent chaining
    • isGreaterOrEqualTo

      T isGreaterOrEqualTo(Byte number)
      Asserts that the checked number is greater than or equal to the given value.
      Parameters:
      number - the value to compare against
      Returns:
      this checker instance for fluent chaining
    • isGreaterOrEqualTo

      T isGreaterOrEqualTo(Short number)
      Asserts that the checked number is greater than or equal to the given value.
      Parameters:
      number - the value to compare against
      Returns:
      this checker instance for fluent chaining
    • isGreaterOrEqualTo

      T isGreaterOrEqualTo(Integer number)
      Asserts that the checked number is greater than or equal to the given value.
      Parameters:
      number - the value to compare against
      Returns:
      this checker instance for fluent chaining
    • isGreaterOrEqualTo

      T isGreaterOrEqualTo(Long number)
      Asserts that the checked number is greater than or equal to the given value.
      Parameters:
      number - the value to compare against
      Returns:
      this checker instance for fluent chaining
    • isGreaterOrEqualTo

      T isGreaterOrEqualTo(Float number)
      Asserts that the checked number is greater than or equal to the given value.
      Parameters:
      number - the value to compare against
      Returns:
      this checker instance for fluent chaining
    • isGreaterOrEqualTo

      T isGreaterOrEqualTo(Double number)
      Asserts that the checked number is greater than or equal to the given value.
      Parameters:
      number - the value to compare against
      Returns:
      this checker instance for fluent chaining
    • isLessThan

      T isLessThan(Byte number)
      Asserts that the checked number is strictly less than the given value.
      Parameters:
      number - the value to compare against
      Returns:
      this checker instance for fluent chaining
    • isLessThan

      T isLessThan(Short number)
      Asserts that the checked number is strictly less than the given value.
      Parameters:
      number - the value to compare against
      Returns:
      this checker instance for fluent chaining
    • isLessThan

      T isLessThan(Integer number)
      Asserts that the checked number is strictly less than the given value.
      Parameters:
      number - the value to compare against
      Returns:
      this checker instance for fluent chaining
    • isLessThan

      T isLessThan(Long number)
      Asserts that the checked number is strictly less than the given value.
      Parameters:
      number - the value to compare against
      Returns:
      this checker instance for fluent chaining
    • isLessThan

      T isLessThan(Float number)
      Asserts that the checked number is strictly less than the given value.
      Parameters:
      number - the value to compare against
      Returns:
      this checker instance for fluent chaining
    • isLessThan

      T isLessThan(Double number)
      Asserts that the checked number is strictly less than the given value.
      Parameters:
      number - the value to compare against
      Returns:
      this checker instance for fluent chaining
    • isLessOrEqualTo

      T isLessOrEqualTo(Byte number)
      Asserts that the checked number is less than or equal to the given value.
      Parameters:
      number - the value to compare against
      Returns:
      this checker instance for fluent chaining
    • isLessOrEqualTo

      T isLessOrEqualTo(Short number)
      Asserts that the checked number is less than or equal to the given value.
      Parameters:
      number - the value to compare against
      Returns:
      this checker instance for fluent chaining
    • isLessOrEqualTo

      T isLessOrEqualTo(Integer number)
      Asserts that the checked number is less than or equal to the given value.
      Parameters:
      number - the value to compare against
      Returns:
      this checker instance for fluent chaining
    • isLessOrEqualTo

      T isLessOrEqualTo(Long number)
      Asserts that the checked number is less than or equal to the given value.
      Parameters:
      number - the value to compare against
      Returns:
      this checker instance for fluent chaining
    • isLessOrEqualTo

      T isLessOrEqualTo(Float number)
      Asserts that the checked number is less than or equal to the given value.
      Parameters:
      number - the value to compare against
      Returns:
      this checker instance for fluent chaining
    • isLessOrEqualTo

      T isLessOrEqualTo(Double number)
      Asserts that the checked number is less than or equal to the given value.
      Parameters:
      number - the value to compare against
      Returns:
      this checker instance for fluent chaining