| Modifier and Type | Method and Description |
|---|---|
static <T> Consumer<T> |
andThen(Consumer<? super T> c1,
Consumer<? super T> c2)
Compose
Consumer calls. |
public static <T> Consumer<T> andThen(Consumer<? super T> c1, Consumer<? super T> c2)
Consumer calls.
c1.accept(value); c2.accept(value);
T - the type of the input to the operationc1 - the first Consumerc2 - the second ConsumerConsumerNullPointerException - if c1 or c2 is nullCopyright © 2015. All rights reserved.