Interface BigIntegerValidator
- All Superinterfaces:
ComparableComponent<BigIntegerValidator,,BigInteger> NegativeNumberComponent<BigIntegerValidator>,ObjectComponent<BigIntegerValidator,,BigInteger> PositiveNumberComponent<BigIntegerValidator>,ValidatorComponent<BigIntegerValidator,,BigInteger> ZeroNumberComponent<BigIntegerValidator>
public interface BigIntegerValidator
extends ValidatorComponent<BigIntegerValidator,BigInteger>, ObjectComponent<BigIntegerValidator,BigInteger>, NegativeNumberComponent<BigIntegerValidator>, ZeroNumberComponent<BigIntegerValidator>, PositiveNumberComponent<BigIntegerValidator>, ComparableComponent<BigIntegerValidator,BigInteger>
Validates the state of a
BigInteger.-
Method Summary
Modifier and TypeMethodDescriptionisMultipleOf(BigInteger factor) Ensures that the value is a multiple offactor.isMultipleOf(BigInteger factor, String name) Ensures that the value is a multiple offactor.isNotMultipleOf(BigInteger factor) Ensures that the value is not a multiple offactor.isNotMultipleOf(BigInteger factor, String name) Ensures that the value is not a multiple offactor.Methods declared in interface com.github.cowwoc.requirements10.java.validator.component.ComparableComponent
isBetween, isBetween, isGreaterThan, isGreaterThan, isGreaterThanOrEqualTo, isGreaterThanOrEqualTo, isLessThan, isLessThan, isLessThanOrEqualTo, isLessThanOrEqualToMethods declared in interface com.github.cowwoc.requirements10.java.validator.component.NegativeNumberComponent
isNegative, isNotNegativeMethods declared in interface com.github.cowwoc.requirements10.java.validator.component.ObjectComponent
getValue, isEqualTo, isEqualTo, isInstanceOf, isInstanceOf, isNotEqualTo, isNotEqualTo, isNotInstanceOf, isNotInstanceOf, isNotNull, isNull, isReferenceEqualTo, isReferenceNotEqualToMethods declared in interface com.github.cowwoc.requirements10.java.validator.component.PositiveNumberComponent
isNotPositive, isPositiveMethods declared in interface com.github.cowwoc.requirements10.java.validator.component.ValidatorComponent
and, elseGetFailures, elseThrow, getContext, getContextAsString, getName, getValueOrDefault, validationFailed, withContextMethods declared in interface com.github.cowwoc.requirements10.java.validator.component.ZeroNumberComponent
isNotZero, isZero
-
Method Details
-
isMultipleOf
Ensures that the value is a multiple offactor.- Parameters:
factor- the number being multiplied- Returns:
- this
- Throws:
NullPointerException- if the value orfactorare nullIllegalArgumentException- if the value is not a multiple offactor
-
isMultipleOf
Ensures that the value is a multiple offactor.- Parameters:
factor- the number being multipliedname- the name of the factor- Returns:
- this
- Throws:
NullPointerException- if the value or any of the arguments are nullIllegalArgumentException- if:nameis emptynamecontains whitespacenameis already in use by the value being validated or the validator context- the value is not a multiple of
factor
-
isNotMultipleOf
Ensures that the value is not a multiple offactor.- Parameters:
factor- the number being multiplied- Returns:
- this
- Throws:
NullPointerException- if the value orfactorare nullIllegalArgumentException- if the value is a multiple offactor
-
isNotMultipleOf
Ensures that the value is not a multiple offactor.- Parameters:
factor- the number being multipliedname- the name of the factor- Returns:
- this
- Throws:
NullPointerException- if the value or any of the arguments are nullIllegalArgumentException- if:nameis emptynamecontains whitespacenameis already in use by the value being validated or the validator context- the value is a multiple of
factor
-