T
- 参数类型@FunctionalInterface public interface SerConsumer<T> extends Consumer<T>, Serializable
Consumer
Modifier and Type | Method and Description |
---|---|
default void |
accept(T t)
Performs this operation on the given argument.
|
void |
accepting(T t)
Performs this operation on the given argument.
|
default SerConsumer<T> |
andThen(SerConsumer<? super T> after)
Returns a composed
Consumer that performs, in sequence, this
operation followed by the after operation. |
static <T> SerConsumer<T> |
multi(SerConsumer<T>... consumers)
multi
|
static <T> SerConsumer<T> |
nothing()
nothing
|
default void accept(T t)
@SafeVarargs static <T> SerConsumer<T> multi(SerConsumer<T>... consumers)
T
- typeconsumers
- lambdadefault SerConsumer<T> andThen(SerConsumer<? 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.after
- the operation to perform after this operationConsumer
that performs in sequence this
operation followed by the after
operationNullPointerException
- if after
is nullstatic <T> SerConsumer<T> nothing()
T
- typeCopyright © 2025. All rights reserved.