Interface ObjectExtractor<T>

Type Parameters:
T - The type of the value to extract.
All Known Implementing Classes:
BigDecimalExtractor, BigIntegerExtractor, BooleanExtractor, ByteExtractor, CharacterExtractor, DoubleExtractor, FloatExtractor, GenericObjectExtractor, IntegerExtractor, LongExtractor, PrimitiveBasedObjectExtractor, ShortExtractor, StringExtractor

public interface ObjectExtractor<T>
Functional interface handling the type-safe transformation of a ResultElement to a specific type.
  • Method Summary

    Modifier and Type
    Method
    Description
    extract(ResultElement resultElement)
    Extracts the value of the given ResultElement as the type T.
  • Method Details

    • extract

      @Nonnull T extract(@Nonnull ResultElement resultElement) throws UnsupportedOperationException
      Extracts the value of the given ResultElement as the type T.
      Parameters:
      resultElement - The ResultElement to transform.
      Returns:
      The resultElement as the given type.
      Throws:
      UnsupportedOperationException - If the value could not be converted to the given type.