Package io.github.connellite.function
Interface UncheckedUnaryOperator<T>
- All Superinterfaces:
Function<T,,T> UnaryOperator<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
UnaryOperator that may throw; checked exceptions are rethrown via ReflectionUtil.propagate(Throwable).-
Method Summary
Modifier and TypeMethodDescriptiondefault TDelegates touncheckedApply(T); checked exceptions are propagated.static <T> UncheckedUnaryOperator<T>of(UncheckedUnaryOperator<T> operator) Gives a throwing method reference this interface as its target type.uncheckedApply(T t) 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.
-