Package org.apache.juneau.utils
Interface Consumer2<A,B>
- Type Parameters:
A
- Argument 1.B
- Argument 2.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface for consumers of 2-part arguments.
-
Method Summary
-
Method Details
-
apply
Performs this operation on the given arguments.- Parameters:
a
- Argument 1.b
- Argument 2.
-
andThen
Returns a composedConsumer
that performs, in sequence, this operation followed by theafter operation.- Type Parameters:
V
- The return type.- Parameters:
after
- The operation to perform after this operation.- Returns:
- A composed
Consumer
that performs in sequence this operation followed by the after operation.
-