T
- the type of the input to the operation@FunctionalInterface public interface ConsumerEx<T> extends Consumer<T>, Serializable
Serializable
variant of java.util.function.Consumer
which declares checked exception.Modifier and Type | Method and Description |
---|---|
default void |
accept(T t) |
void |
acceptEx(T t)
Exception-declaring version of
Consumer.accept(T) |
default ConsumerEx<T> |
andThen(ConsumerEx<? super T> after)
Serializable variant of java.util.function.Consumer#andThen(Consumer) . |
static <T> ConsumerEx<T> |
noop()
Returns a consumer that does nothing.
|
void acceptEx(T t) throws Exception
Consumer.accept(T)
Exception
- in case of any exceptional casedefault ConsumerEx<T> andThen(ConsumerEx<? super T> after)
Serializable
variant of java.util.function.Consumer#andThen(Consumer)
.static <T> ConsumerEx<T> noop()
T
- the consumer input typeCopyright © 2023 Hazelcast, Inc.. All rights reserved.