Package dev.restate.common.function
Interface ThrowingFunction<T,R>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Like
Function
but can throw checked exceptions.-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ThrowingFunction
<T, T> identity()
static <T,
R> Function <T, R> wrap
(ThrowingFunction<T, R> fn)
-
Method Details
-
apply
- Throws:
Throwable
-
wrap
-
identity
-
asFunction
-