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

com.annimon.stream.function.ThrowableSupplier Maven / Gradle / Ivy

package com.annimon.stream.function;

/**
 * Represents a function for supplying result which can throw an exception.
 *
 * @param  the type of the result
 * @param  the type of the exception
 * @see Supplier
 */
@FunctionalInterface
public interface ThrowableSupplier {

    /**
     * Gets a result.
     *
     * @return a result
     * @throws E an exception
     */
    T get() throws E;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy