Package io.github.connellite.function
Interface UncheckedFunction<T,R>
- All Superinterfaces:
Function<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.
Function that may throw; checked exceptions are rethrown via ReflectionUtil.propagate(Throwable).-
Method Summary
Modifier and TypeMethodDescriptiondefault RDelegates touncheckedApply(T); checked exceptions are propagated.static <T,R> UncheckedFunction<T, R> of(UncheckedFunction<T, R> function) Gives a throwing method reference this interface as its target type.uncheckedApply(T input) Same asapply(T), but may throw.
-
Method Details
-
apply
Delegates touncheckedApply(T); checked exceptions are propagated. -
uncheckedApply
Same asapply(T), but may throw.- Throws:
Throwable
-
of
Gives a throwing method reference this interface as its target type. The same instance is returned;apply(T)still propagates checked exceptions.
-