S - the type of the non-SPI interface extending this interfaceT - the type of the parameterpublic interface NumberRequirementsSpi<S extends NumberRequirementsSpi<S,T>,T extends Number & Comparable<? super T>> extends ComparableRequirementsSpi<S,T>
Number.| Modifier and Type | Method and Description |
|---|---|
S |
isNegative()
Ensures that the parameter is negative.
|
S |
isNotNegative()
Ensures that the parameter is not negative.
|
S |
isNotPositive()
Ensures that the parameter is not positive.
|
S |
isNotZero()
Ensures that the parameter is not zero.
|
S |
isPositive()
Ensures that the parameter is positive.
|
S |
isZero()
Ensures that the parameter is zero.
|
isGreaterThan, isGreaterThan, isGreaterThanOrEqualTo, isGreaterThanOrEqualTo, isIn, isLessThan, isLessThan, isLessThanOrEqualTo, isLessThanOrEqualToisEqualTo, isEqualTo, isInstanceOf, isNotEqualTo, isNotEqualTo, isNotNull, isNull, withContext, withExceptionS isNegative() throws IllegalArgumentException
IllegalArgumentException - if parameter is not negativeS isNotNegative() throws IllegalArgumentException
IllegalArgumentException - if parameter is negativeS isNotPositive() throws IllegalArgumentException
IllegalArgumentException - if parameter is positiveS isNotZero() throws IllegalArgumentException
IllegalArgumentException - if parameter is zeroS isPositive() throws IllegalArgumentException
IllegalArgumentException - if parameter is not positiveS isZero() throws IllegalArgumentException
IllegalArgumentException - if parameter is not zeroCopyright © 2016. All rights reserved.