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 typeT
or 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 void
consumeException(E exception)
Consumes the designated exception.void
consumeResult(T result)
Consumes the designated result.
-