
org.kohsuke.github.function.SupplierThrows Maven / Gradle / Ivy
The 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