T
- 第一个参数类型U
- 第二个参数类型@FunctionalInterface public interface SerBiConsumer<T,U> extends BiConsumer<T,U>, Serializable
Modifier and Type | Method and Description |
---|---|
default void |
accept(T t,
U u)
Performs this operation on the given arguments.
|
void |
accepting(T t,
U u)
Performs this operation on the given arguments.
|
default SerBiConsumer<T,U> |
andThen(SerBiConsumer<? super T,? super U> after)
Returns a composed
SerBiCons that performs, in sequence, this
operation followed by the after operation. |
static <T,U> SerBiConsumer<T,U> |
multi(SerBiConsumer<T,U>... consumers)
multi
|
static <T,U> SerBiConsumer<T,U> |
nothing()
什么也不做,用于一些需要传入lambda的方法占位使用
|
andThen
@SafeVarargs static <T,U> SerBiConsumer<T,U> multi(SerBiConsumer<T,U>... consumers)
T
- typeU
- return typeconsumers
- lambdadefault void accept(T t, U u)
accept
in interface BiConsumer<T,U>
t
- the first input argumentu
- the second input argumentdefault SerBiConsumer<T,U> andThen(SerBiConsumer<? super T,? super U> after)
SerBiCons
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 operationSerBiCons
that performs in sequence this
operation followed by the after
operationNullPointerException
- if after
is nullstatic <T,U> SerBiConsumer<T,U> nothing()
T
- 参数1类型U
- 参数2类型Copyright © 2025. All rights reserved.