Package com.sap.cloud.sdk.result
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 TypeMethodDescriptionextract(ResultElement resultElement) Extracts the value of the givenResultElementas the typeT.
-
Method Details
-
extract
Extracts the value of the givenResultElementas the typeT.- Parameters:
resultElement- TheResultElementto transform.- Returns:
- The
resultElementas the given type. - Throws:
UnsupportedOperationException- If the value could not be converted to the given type.
-