Package cdc.validation.checkers.defaults
Class IsLessOrEqual<T extends Comparable<T>>
java.lang.Object
cdc.validation.checkers.defaults.IsLessOrEqual<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FormalArgsstatic final FormalArg<Comparable>static final Factory<IsLessOrEqual>static final FormalArgs -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExplains the conditions at which a positive or negative result is obtained.static IsLessOrEqual<Byte>from(byte max) static IsLessOrEqual<Character>from(char max) static IsLessOrEqual<Double>from(double max) static IsLessOrEqual<Float>from(float max) static IsLessOrEqual<Integer>from(int max) static IsLessOrEqual<Long>from(long max) static IsLessOrEqual<Short>from(short max) static IsLessOrEqual<String>getMax()static <T extends Comparable<T>>
IsLessOrEqual<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
-
IsLessOrEqual
-
-
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
-