S - the type of the non-SPI interface extending this interfaceT - the type of the parameterpublic interface ComparableRequirementsSpi<S extends ComparableRequirementsSpi<S,T>,T extends Comparable<? super T>> extends ObjectRequirementsSpi<S,T>
Comparable.
| Modifier and Type | Method and Description |
|---|---|
S |
isGreaterThan(T value)
Ensures that the parameter is greater than a constant.
|
S |
isGreaterThan(T value,
String name)
Ensures that the parameter is greater than a variable.
|
S |
isGreaterThanOrEqualTo(T value)
Ensures that the parameter is greater than or bigger than a constant.
|
S |
isGreaterThanOrEqualTo(T value,
String name)
Ensures that the parameter is greater than or bigger than a variable.
|
S |
isIn(Range<T> range)
Ensures that the parameter is within range.
|
S |
isLessThan(T value)
Ensures that the parameter is less than a constant.
|
S |
isLessThan(T value,
String name)
Ensures that the parameter is less than the value of a variable.
|
S |
isLessThanOrEqualTo(T value)
Ensures that the parameter is less than or equal to a constant.
|
S |
isLessThanOrEqualTo(T value,
String name)
Ensures that the parameter is less than or equal to a variable.
|
isEqualTo, isEqualTo, isInstanceOf, isNotEqualTo, isNotEqualTo, isNotNull, isNull, withContext, withExceptionS isGreaterThan(T value, String name) throws NullPointerException, IllegalArgumentException
value - the value the parameter must be greater thanname - the name of the variableNullPointerException - if value or name are nullIllegalArgumentException - if parameter is less than or equal to value;
if name is emptyS isGreaterThan(T value) throws NullPointerException, IllegalArgumentException
value - the value the parameter must be greater thanNullPointerException - if value is nullIllegalArgumentException - if parameter is less than or equal to valueS isGreaterThanOrEqualTo(T value, String name) throws NullPointerException, IllegalArgumentException
value - the value the parameter must be greater than or equal toname - the name of the variableNullPointerException - if value or name are nullIllegalArgumentException - if parameter is less than to value; if
name is emptyS isGreaterThanOrEqualTo(T value) throws NullPointerException, IllegalArgumentException
value - the value the parameter must be greater than or equal toNullPointerException - if value is nullIllegalArgumentException - if parameter is less than to valueS isLessThan(T value, String name) throws NullPointerException, IllegalArgumentException
value - the value the parameter must be less thanname - the name of the variableNullPointerException - if value or name are nullIllegalArgumentException - if parameter is greater than or equal to
value; if name is emptyS isLessThan(T value) throws NullPointerException, IllegalArgumentException
value - the value the parameter must be less thanNullPointerException - if value is nullIllegalArgumentException - if parameter is greater than or equal to valueS isLessThanOrEqualTo(T value, String name) throws NullPointerException, IllegalArgumentException
value - the value the parameter must be less than or equal toname - the name of the variableNullPointerException - if value or name are nullIllegalArgumentException - if parameter is greater than value; if
name is emptyS isLessThanOrEqualTo(T value) throws NullPointerException, IllegalArgumentException
value - the value the parameter must be less than or equal toNullPointerException - if value is nullIllegalArgumentException - if parameter is greater than valueS isIn(Range<T> range) throws NullPointerException, IllegalArgumentException
range - the rangeNullPointerException - if range is nullIllegalArgumentException - if parameter is not in rangeCopyright © 2016. All rights reserved.