Package cdc.validation.checkers.defaults
Class IsInRange<T extends Comparable<T>>
java.lang.Object
cdc.validation.checkers.defaults.IsInRange<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FormalArgsstatic final FormalArg<Comparable>static final FormalArg<Comparable>static final FormalArgs -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExplains the conditions at which a positive or negative result is obtained.from(byte min, byte max) from(char min, char max) from(double min, double max) from(float min, float max) from(int min, int max) from(long min, long max) from(short min, short max) getMax()getMin()static <T extends Comparable<T>>
IsInRange<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
-
SMIN
-
SMAX
-
CMIN
-
CMAX
-
SFARGS
-
CFARGS
-
FACTORY
-
-
Constructor Details
-
IsInRange
-
-
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.
-
getMin
-
getMax
-
from
-
from
-
from
-
from
-
from
-
from
-
from
-
from
-