All Superinterfaces:
ComparableComponent<BigIntegerValidator,BigInteger>, NegativeNumberComponent<BigIntegerValidator>, ObjectComponent<BigIntegerValidator,BigInteger>, PositiveNumberComponent<BigIntegerValidator>, ValidatorComponent<BigIntegerValidator,BigInteger>, ZeroNumberComponent<BigIntegerValidator>

Validates the state of a BigInteger.
  • Method Details

    • isMultipleOf

      BigIntegerValidator isMultipleOf(BigInteger factor)
      Ensures that the value is a multiple of factor.
      Parameters:
      factor - the number being multiplied
      Returns:
      this
      Throws:
      NullPointerException - if the value or factor are null
      IllegalArgumentException - if the value is not a multiple of factor
    • isMultipleOf

      BigIntegerValidator isMultipleOf(BigInteger factor, String name)
      Ensures that the value is a multiple of factor.
      Parameters:
      factor - the number being multiplied
      name - the name of the factor
      Returns:
      this
      Throws:
      NullPointerException - if the value or any of the arguments are null
      IllegalArgumentException - if:
      • name is empty
      • name contains whitespace
      • name is already in use by the value being validated or the validator context
      • the value is not a multiple of factor
    • isNotMultipleOf

      BigIntegerValidator isNotMultipleOf(BigInteger factor)
      Ensures that the value is not a multiple of factor.
      Parameters:
      factor - the number being multiplied
      Returns:
      this
      Throws:
      NullPointerException - if the value or factor are null
      IllegalArgumentException - if the value is a multiple of factor
    • isNotMultipleOf

      BigIntegerValidator isNotMultipleOf(BigInteger factor, String name)
      Ensures that the value is not a multiple of factor.
      Parameters:
      factor - the number being multiplied
      name - the name of the factor
      Returns:
      this
      Throws:
      NullPointerException - if the value or any of the arguments are null
      IllegalArgumentException - if:
      • name is empty
      • name contains whitespace
      • name is already in use by the value being validated or the validator context
      • the value is a multiple of factor