Interface ConsumingRunnable<T,E extends Throwable>
-
- Type Parameters:
T- The type of the accepted value.E- The type of the accepted exception.
public interface ConsumingRunnable<T,E extends Throwable>A runnable consuming an object of typeTor an exception of typeE. This allows for combining runnables.- Author:
- Ulrich Kreher
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconsumeException(E exception)Consumes the designated exception.voidconsumeResult(T result)Consumes the designated result.
-