Package org.ethelred.util.function
Interface CheckedRunnable<E extends java.lang.Throwable>
-
- Type Parameters:
E- A checked exception type that is thrown by the operation
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface CheckedRunnable<E extends java.lang.Throwable>Checked wrapper for a Runnable
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.RunnableasUnchecked()voidrun()static <EE extends java.lang.Throwable>
java.lang.Runnableunchecked(CheckedRunnable<EE> runnable)
-
-
-
Method Detail
-
asUnchecked
default java.lang.Runnable asUnchecked()
-
unchecked
static <EE extends java.lang.Throwable> java.lang.Runnable unchecked(CheckedRunnable<EE> runnable)
-
-