Package cdc.validation.checkers.defaults
Class IsLessThan<T extends Comparable<T>>
java.lang.Object
cdc.validation.checkers.defaults.IsLessThan<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FormalArgsstatic final FormalArg<Comparable>static final Factory<IsLessThan>static final FormalArgs -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExplains the conditions at which a positive or negative result is obtained.static IsLessThan<Byte>from(byte max) static IsLessThan<Character>from(char max) static IsLessThan<Double>from(double max) static IsLessThan<Float>from(float max) static IsLessThan<Integer>from(int max) static IsLessThan<Long>from(long max) static IsLessThan<Short>from(short max) static IsLessThan<String>getMax()static <T extends Comparable<T>>
IsLessThan<T>booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cdc.validation.checkers.Checker
after, after, afterRaw, and, andRaw, cast, cast, explain, explain, negate, or, orRaw, testAndExplain, testAndExplain, testAndExplainRaw, testAndExplainRaw, testRaw, wrap
-
Field Details
-
CLASS
-
SMAX
-
CMAX
-
SFARGS
-
CFARGS
-
FACTORY
-
-
Constructor Details
-
IsLessThan
-
-
Method Details
-
of
-
getValueClass
- Specified by:
getValueClassin interfaceChecker<T extends Comparable<T>>- Returns:
- The class of tested values.
-
test
- Specified by:
testin interfaceChecker<T extends Comparable<T>>- Specified by:
testin interfacePredicate<T extends Comparable<T>>
-
explain
Description copied from interface:CheckerExplains the conditions at which a positive or negative result is obtained.- Specified by:
explainin interfaceChecker<T extends Comparable<T>>- Parameters:
result- The result to explain.arg- The argument name to use in explanations.- Returns:
- A string explaining the conditions leading to
result.
-
getMax
-
from
-
from
-
from
-
from
-
from
-
from
-
from
-
from
-