saker.build Documentation TaskDoc JavaDoc Packages
public interface ThrowingFunction<T, R>
Functional interface similar to Function, except the apply(T) method is allowed to throw an arbitrary exception.
TThe argument type of the function.
RThe return type of the function.
Methods
public R
apply(T value)
Applies the function to the given argument.
public abstract R apply(T value) throws Exception
Applies the function to the given argument.
valueThe argument.
The calculated result value.
ExceptionIn case the operation failed.