mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-31 00:11:23 +00:00
Add functional interfaces
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package org.kohsuke.github.function;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
||||
/**
|
||||
* A functional interface, equivalent to {@link java.util.function.Function} but that allows throwing {@link Throwable}
|
||||
*
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface InputStreamFunction<R> extends FunctionThrows<InputStream, R, IOException> {
|
||||
}
|
||||
Reference in New Issue
Block a user