Class ConverterRegistry.Probe

java.lang.Object
com.ultikits.ultitools.config.convert.ConverterRegistry.Probe
Enclosing class:
ConverterRegistry

@Internal public static final class ConverterRegistry.Probe extends Object
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 Details

  • Constructor Details

    • Probe

      private Probe(boolean succeeded, Object value)
  • Method Details

    • read

      private static ConverterRegistry.Probe read(Object value)
    • succeeded

      public boolean succeeded()
      Returns:
      whether the plain value read as the declared type without any failure
    • value

      public Object value()
      Returns:
      the value read; null when the probe failed