Package com.sap.cloud.sdk.result
Class GenericCollectionExtractor<T>
java.lang.Object
com.sap.cloud.sdk.result.GenericCollectionExtractor<T>
- Type Parameters:
T- The type of the content of the list to create.
- All Implemented Interfaces:
CollectionExtractor<List<T>,T>
Extracts a
Collection out of a given ResultElement by wrapping the result of an
ObjectExtractor into a singletonList.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextract(ResultElement resultElement) Transforms the givenResultElementinto aCollection.
-
Constructor Details
-
GenericCollectionExtractor
-
-
Method Details
-
extract
Description copied from interface:CollectionExtractorTransforms the givenResultElementinto aCollection.- Specified by:
extractin interfaceCollectionExtractor<List<T>,T> - Parameters:
resultElement- TheResultElementto transform.- Returns:
- A
Collectioncontaining the content of the givenResultElement.
-