Interface TConsumer<T>
- Type Parameters:
T- The argument type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
This is a functional interface that can be used to replace Consumer and throw exceptions.
-
Method Summary
-
Method Details
-
accept
Accepts the given argument and throws an exception.- Parameters:
t- The argument- Throws:
Throwable- The exception
-
andThen
- Parameters:
after- The operation to perform after this operation- Returns:
- A composed
TConsumerthat performs in sequence this operation followed by theafter
-