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 givenResultElement
as the typeT
.
-
Method Details
-
extract
Extracts the value of the givenResultElement
as the typeT
.- Parameters:
resultElement
- TheResultElement
to transform.- Returns:
- The
resultElement
as the given type. - Throws:
UnsupportedOperationException
- If the value could not be converted to the given type.
-