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 givenResultElementinto aCollection.
-
Method Details
-
extract
Transforms the givenResultElementinto aCollection.- Parameters:
resultElement- TheResultElementto transform.- Returns:
- A
Collectioncontaining the content of the givenResultElement.
-