Package io.github.connellite.function
Interface UncheckedRunnable
- All Superinterfaces:
Runnable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Runnable that may throw; checked exceptions are rethrown via ReflectionUtil.propagate(Throwable).-
Method Summary
Modifier and TypeMethodDescriptionstatic UncheckedRunnableof(UncheckedRunnable runnable) Gives a throwing method reference this interface as its target type.default voidrun()Delegates touncheckedRun(); checked exceptions are propagated.voidSame asrun(), but may throw.
-
Method Details
-
run
default void run()Delegates touncheckedRun(); checked exceptions are propagated. -
uncheckedRun
Same asrun(), but may throw.- Throws:
Throwable
-
of
Gives a throwing method reference this interface as its target type. The same instance is returned;run()still propagates checked exceptions.
-