public abstract class ComparableVerifier<T extends Comparable<T>,X extends ComparableVerifier<T,X>> extends AbstractVerifier<T,X>
| Modifier and Type | Method and Description |
|---|---|
X |
isBetween(T min,
T max)
asserts that a value is between two other values.
|
X |
isGreater(T otherValue)
asserts that the validated is greater than another value.
|
X |
isGreaterOrEqual(T otherValue)
asserts that the validated is greater or equal to another value.
|
X |
isLess(T otherValue)
asserts that the validated is less than another value.
|
X |
isLessOrEqual(T otherValue)
asserts that the validated is less or equal to another value.
|
X |
isNotBetween(T min,
T max)
asserts that a value is not between two other values.
|
isEqualTo, isNotEqualTo, isNotNull, isNull, matchespublic X isGreater(T otherValue)
otherValue - used to compare topublic X isGreaterOrEqual(T otherValue)
otherValue - used to compare topublic X isLess(T otherValue)
otherValue - used to compare topublic X isLessOrEqual(T otherValue)
otherValue - used to compare topublic X isBetween(T min, T max)
min - min value includingmax - max value includingCopyright © 2020. All rights reserved.