Package org.nuxeo.common.function
Interface ThrowableRunnable<E extends Throwable>
- Type Parameters:
- E- the type of exception to throw
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
- Since:
- 11.1
- 
Method SummaryModifier and TypeMethodDescriptionasRunnable(ThrowableRunnable<E> throwableRunnable) static <E extends Throwable>
 ThrowableSupplier<Void,E> asThrowableSupplier(ThrowableRunnable<E> throwableRunnable) voidrun()default Runnabledefault ThrowableSupplier<Void,E> 
- 
Method Details- 
run
- 
toRunnable- Returns:
- this ThrowableRunnableas aRunnablethrowing the checked exception as an unchecked one
 
- 
toThrowableSupplier- Returns:
- this ThrowableRunnableas aThrowableSupplierreturningVoid
 
- 
asRunnable- Returns:
- the given ThrowableRunnableas aRunnablethrowing the checked exception as an unchecked one
 
- 
asThrowableSupplierstatic <E extends Throwable> ThrowableSupplier<Void,E> asThrowableSupplier(ThrowableRunnable<E> throwableRunnable) - Returns:
- the given ThrowableRunnableas aThrowableSupplierreturningVoid
 
 
-