Skip to contentPackage: ThrowingFunction
ThrowingFunction
Coverage
1: package cz.cvut.kbss.ontodriver.rdf4j.util;
2:
3: import cz.cvut.kbss.ontodriver.rdf4j.exception.Rdf4jDriverException;
4:
5: import java.util.function.Function;
6:
7: /**
8: * A {@link Function} that may throw a checked exception.
9: *
10: * @param <T> Argument type
11: * @param <R> Result type
12: */
13: public interface ThrowingFunction<T, R> {
14:
15: /**
16: * Apply the function to the specified argument.
17: *
18: * @param t Argument
19: * @return Result
20: * @throws Rdf4jDriverException If function evaluation throws an exception
21: */
22: R apply(T t) throws Rdf4jDriverException;
23: }