@FunctionalInterface public interface SerArgsCons<T> extends Serializable
| 限定符和类型 | 方法和说明 |
|---|---|
default void |
accept(T... t)
Performs this operation on the given argument.
|
void |
accepting(T... t)
Performs this operation on the given argument.
|
default SerArgsCons<T> |
andThen(SerArgsCons<? super T> after)
Returns a composed
SerArgsCons that performs, in sequence, this
operation followed by the after operation. |
static <T> SerArgsCons<T> |
multi(SerArgsCons<T>... consumers)
multi
|
static <T> SerArgsCons<T> |
nothing()
nothing
|
@SafeVarargs static <T> SerArgsCons<T> multi(SerArgsCons<T>... consumers)
T - typeconsumers - lambdadefault void accept(T... t)
t - the input argumentsdefault SerArgsCons<T> andThen(SerArgsCons<? super T> after)
SerArgsCons 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 operationSerArgsCons that performs in sequence this
operation followed by the after operationNullPointerException - if after is nullstatic <T> SerArgsCons<T> nothing()
T - a T classCopyright © 2023 dromara. All rights reserved.