@FunctionalInterface public interface ThrowingFunction<T,R>
Function
that allows throwing checked exceptions. ThrowingFunction
is usually implemented by a lambda and passed to CheckedExceptionHandler.function(ThrowingFunction)
. See noexception tutorial.
Modifier and Type | Method and Description |
---|---|
R |
apply(T t)
Variation of Function.apply(Object) that allows throwing checked exceptions.
|
R apply(T t) throws Throwable
Function.apply(Object)
that allows throwing checked exceptions.
t
- see Function.apply(Object)
Function.apply(Object)
Throwable
- if unable to complete
CheckedExceptionHandler.function(ThrowingFunction)
, Function.apply(Object)
Copyright © 2017–2020 Robert Važan. All rights reserved.