Package com.helger.commons.callback
Interface IThrowingRunnable<EXTYPE extends Throwable>
-
- Type Parameters:
EXTYPE- Exception type to be thrown
- 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 IThrowingRunnable<EXTYPE extends Throwable>
A simple interface that looks likeRunnablebut may throw an exception on its execution.
Note: It is not possible to extendRunnabledirectly, as derived interfaces are not allowed to add exception specifications.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidrun()Run it.
-