This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ... | |
import java.util.function.Function; | |
@FunctionalInterface | |
public interface ThrowingFunction<T, R, E extends Throwable> { | |
R apply(T t) throws E; | |
static <T, R, E extends Throwable> Function<T, R> unchecked(ThrowingFunction<T, R, E> f) { |