Package com.sap.cloud.sdk.result
Interface CollectionExtractor<CollectionT extends Collection<T>,T>
- Type Parameters:
CollectionT
- The type of the collection to extract.T
- The type of the values contained in the collection.
- All Known Implementing Classes:
GenericCollectionExtractor
public interface CollectionExtractor<CollectionT extends Collection<T>,T>
Functional interface handling the type-safe transformation of a
ResultElement
to a collections of a specific
type.-
Method Summary
Modifier and TypeMethodDescriptionextract
(ResultElement resultElement) Transforms the givenResultElement
into aCollection
.
-
Method Details
-
extract
Transforms the givenResultElement
into aCollection
.- Parameters:
resultElement
- TheResultElement
to transform.- Returns:
- A
Collection
containing the content of the givenResultElement
.
-