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
-
Method Summary
Modifier and TypeMethodDescriptionextract
(ResultElement resultElement) Transforms the givenResultElement
into aCollection
.
-
Constructor Details
-
GenericCollectionExtractor
-
-
Method Details
-
extract
Description copied from interface:CollectionExtractor
Transforms the givenResultElement
into aCollection
.- Specified by:
extract
in interfaceCollectionExtractor<List<T>,
T> - Parameters:
resultElement
- TheResultElement
to transform.- Returns:
- A
Collection
containing the content of the givenResultElement
.
-