Interface Commands<T,E extends Throwable>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An adaptation of
Consumer which allows for exceptions to passed through- Author:
- Jakub Cechacek
-
Method Summary
-
Method Details
-
execute
Performs this operation on the given argument.- Parameters:
t- the input argument- Throws:
E- possibly thrown exception
-
andThen
SeeConsumer- Parameters:
after- the operation to perform after this operation- Returns:
- a composed
Consumerthat performs in sequence this operation followed by theafteroperation - Throws:
NullPointerException- ifafteris null
-