T - the type of the input to the operation@FunctionalInterface public interface IConsumer<T> extends Consumer<T>, Serializable
IConsumer is expected to operate via side-effects. This is a
serializable extension to the Consumer interface.
This is a functional interface whose functional method is
Consumer.accept(Object).
| Modifier and Type | Method and Description |
|---|---|
static <DATATYPE> IConsumer<DATATYPE> |
and(Consumer<? super DATATYPE> aFirst,
Consumer<? super DATATYPE> aSecond) |
default IConsumer<T> |
andThen(Consumer<? super T> after)
Returns a composed
Consumer that performs, in sequence, this
operation followed by the after operation. |
@Nonnull default IConsumer<T> andThen(@Nonnull Consumer<? super T> after)
Consumer that performs, in sequence, this
operation followed by the after operation. If performing either
operation throws an exception, it is relayed to the caller of the composed
operation. If performing this operation throws an exception, the
after operation will not be performed.Copyright © 2014–2017 Philip Helger. All rights reserved.