T - The value type.Checker<T>, java.util.function.Predicate<T>public final class RefChecker<T> extends java.lang.Object implements Checker<T>
The delegate must be compliant with the type of this checker.
| Constructor | Description |
|---|---|
RefChecker(java.lang.Class<T> valueClass,
java.lang.String name) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
explain(boolean result,
java.lang.String argName) |
Explains the conditions at which a positive or negative result is obtained.
|
Checker<? super T> |
getDelegate() |
|
java.lang.String |
getName() |
|
cdc.util.refs.ResolutionStatus |
getResolutionStatus() |
|
java.lang.Class<T> |
getValueClass() |
|
void |
resolve(cdc.util.lang.FailureReaction reaction) |
Resolves the delegate.
|
boolean |
test(T value) |
after, after, afterRaw, and, andRaw, cast, cast, explain, explain, fromConverter, fromFunction, negate, or, orRaw, testAndExplain, testAndExplainpublic RefChecker(java.lang.Class<T> valueClass, java.lang.String name)
public java.lang.String getName()
public void resolve(cdc.util.lang.FailureReaction reaction)
The delegate is searched only the first time this method is called.
reaction - The reaction to adopt if resolution fails.public cdc.util.refs.ResolutionStatus getResolutionStatus()
public Checker<? super T> getDelegate()
null if resolution is not yet done or failed.public java.lang.Class<T> getValueClass()
getValueClass in interface Checker<T>public boolean test(T value)
public java.lang.String explain(boolean result,
java.lang.String argName)
CheckerCopyright © 2019. All rights reserved.