T
- the type of the first argument to the operationE
- the type of exceptions that can be thrown by the operation@FunctionalInterface public interface EConsumer<T,E extends Throwable>
EConsumer
interface expands on the Consumer
interface to provide the ability to throw back exceptions.Modifier and Type | Method and Description |
---|---|
void |
accept(T t)
Performs this operation on the given argument.
|
default EConsumer<T,E> |
andThen(EConsumer<? super T,E> after)
Returns a composed
EConsumer that performs, in sequence, this
operation followed by the after operation. |
default EConsumer<T,E> andThen(EConsumer<? super T,E> after) throws E extends Throwable
EConsumer
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.after
- the operation to perform after this operationEConsumer
that performs in sequence this
operation followed by the after
operationNullPointerException
- if after
is null
E
- if an error occursE extends Throwable
Copyright (C) 2015-2017 The Helenus Driver Project Authors.