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

org.kohsuke.github.function.FunctionThrows 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.Function} but that allows throwing {@link Throwable}
 *
 * @param 
 *            the type of input
 * @param 
 *            the type of output
 * @param 
 *            the type of error
 */
@FunctionalInterface
public interface FunctionThrows {
    /**
     * Apply r.
     *
     * @param input
     *            the input
     * @return the r
     * @throws E
     *             the e
     */
    R apply(T input) throws E;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy