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

org.kohsuke.github.function.SupplierThrows Maven / Gradle / Ivy

There is a newer version: 2.0.0-alpha-2
Show newest version
package org.kohsuke.github.function;

/**
 * A functional interface, equivalent to {@link java.util.function.Supplier} but that allows throwing {@link Throwable}
 *
 * @param 
 *            the type of output
 * @param 
 *            the type of error
 */
@FunctionalInterface
public interface SupplierThrows {
    /**
     * Get a value.
     *
     * @return the
     * @throws E
     *             the exception that may be thrown
     */
    T get() throws E;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy