接口 LongBiConsumer
-
- 所有已知子接口:
LongForEachAction
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
@FunctionalInterface public interface LongBiConsumerRepresents an operation that accepts twolong-valued input arguments and returns no result. This is thelong-consuming primitive type specialization ofBiConsumer.This is a functional interface whose functional method is
accept(long, long).- 从以下版本开始:
- 2.5
- 另请参阅:
BiConsumer
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 voidaccept(long left, long right)Performs this operation on the given arguments.default LongBiConsumerandThen(LongBiConsumer after)Returns a composedLongBiConsumerthat performs, in sequence, this operation followed by theafteroperation.
-
-
-
方法详细资料
-
accept
void accept(long left, long right)Performs this operation on the given arguments.- 参数:
left- the first input argumentright- the second input argument
-
andThen
default LongBiConsumer andThen(LongBiConsumer after)
Returns a composedLongBiConsumerthat performs, in sequence, this operation followed by theafteroperation. If performing either operation throws an exception, it is relayed to the caller of the composed operation. If performing this operation throws an exception, theafteroperation will not be performed.- 参数:
after- the operation to perform after this operation- 返回:
- a composed
LongBiConsumerthat performs in sequence this operation followed by theafteroperation - 抛出:
java.lang.NullPointerException- ifafteris null
-
-