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 SummaryModifier 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.ComparableComponentisBetween, isBetween, isGreaterThan, isGreaterThan, isGreaterThanOrEqualTo, isGreaterThanOrEqualTo, isLessThan, isLessThan, isLessThanOrEqualTo, isLessThanOrEqualToMethods declared in interface com.github.cowwoc.requirements10.java.validator.component.NegativeNumberComponentisNegative, isNotNegativeMethods declared in interface com.github.cowwoc.requirements10.java.validator.component.ObjectComponentgetValue, isEqualTo, isEqualTo, isInstanceOf, isInstanceOf, isNotEqualTo, isNotEqualTo, isNotInstanceOf, isNotInstanceOf, isNotNull, isNull, isReferenceEqualTo, isReferenceNotEqualToMethods declared in interface com.github.cowwoc.requirements10.java.validator.component.PositiveNumberComponentisNotPositive, isPositiveMethods declared in interface com.github.cowwoc.requirements10.java.validator.component.ValidatorComponentand, elseGetFailures, elseThrow, getContext, getContextAsString, getName, getValueOrDefault, validationFailed, withContextMethods declared in interface com.github.cowwoc.requirements10.java.validator.component.ZeroNumberComponentisNotZero, isZero
- 
Method Details- 
isMultipleOfEnsures that the value is a multiple offactor.- Parameters:
- factor- the number being multiplied
- Returns:
- this
- Throws:
- NullPointerException- if the value or- factorare null
- IllegalArgumentException- if the value is not a multiple of- factor
 
- 
isMultipleOfEnsures that the value is a multiple offactor.- 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:- nameis empty
- namecontains whitespace
- nameis already in use by the value being validated or the validator context
- the value is not a multiple of factor
 
 
- 
isNotMultipleOfEnsures that the value is not a multiple offactor.- Parameters:
- factor- the number being multiplied
- Returns:
- this
- Throws:
- NullPointerException- if the value or- factorare null
- IllegalArgumentException- if the value is a multiple of- factor
 
- 
isNotMultipleOfEnsures that the value is not a multiple offactor.- 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:- nameis empty
- namecontains whitespace
- nameis already in use by the value being validated or the validator context
- the value is a multiple of factor
 
 
 
-