All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sap.cloud.sdk.result.CollectionExtractor Maven / Gradle / Ivy

/*
 * Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved.
 */

package com.sap.cloud.sdk.result;

import java.util.Collection;

/**
 * Functional interface handling the type-safe transformation of a {@code ResultElement} to a collections of a specific
 * type.
 *
 * @param 
 *            The type of the collection to extract.
 * @param 
 *            The type of the values contained in the collection.
 */
public interface CollectionExtractor, T>
{
    /**
     * Transforms the given {@code ResultElement} into a {@code Collection}.
     * 
     * @param resultElement
     *            The {@code ResultElement} to transform.
     * @return A {@code Collection} containing the content of the given {@code ResultElement}.
     */
    CollectionT extract( final ResultElement resultElement );
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy