Package cdc.validation.checkers.defaults
Class IsInstanceOf
- java.lang.Object
-
- cdc.validation.checkers.defaults.IsInstanceOf
-
-
Field Summary
Fields Modifier and Type Field Description static FormalArg<Class>CLASSstatic Factory<IsInstanceOf>FACTORYstatic FormalArgsFARGS
-
Constructor Summary
Constructors Constructor Description IsInstanceOf(Class<?> cls)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringexplain(boolean result, String arg)Explains the conditions at which a positive or negative result is obtained.static IsInstanceOffrom(Class<?> cls)Class<Object>getValueClass()booleantest(Object value)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods 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 Detail
-
FARGS
public static final FormalArgs FARGS
-
FACTORY
public static final Factory<IsInstanceOf> FACTORY
-
-
Constructor Detail
-
IsInstanceOf
public IsInstanceOf(Class<?> cls)
-
-
Method Detail
-
getValueClass
public Class<Object> getValueClass()
- Specified by:
getValueClassin interfaceChecker<Object>- Returns:
- The class of tested values.
-
test
public boolean test(Object value)
-
explain
public String explain(boolean result, String arg)
Description copied from interface:CheckerExplains the conditions at which a positive or negative result is obtained.
-
from
public static IsInstanceOf from(Class<?> cls)
-
-