Class ConverterRegistry.Probe
java.lang.Object
com.ultikits.ultitools.config.convert.ConverterRegistry.Probe
- Enclosing class:
ConverterRegistry
Outcome of
ConverterRegistry.Context.probe(java.lang.Object, java.lang.reflect.Type): whether the read succeeded without any failure, and the value it read. A probe
never records a failure in the conversion that ran it.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ConverterRegistry.Probeprivate final booleanprivate final Object -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
FAILED
-
succeeded
private final boolean succeeded -
value
-
-
Constructor Details
-
Probe
-
-
Method Details
-
read
-
succeeded
public boolean succeeded()- Returns:
- whether the plain value read as the declared type without any failure
-
value
- Returns:
- the value read;
nullwhen the probe failed
-