接口 IntForEachAction
-
- 所有超级接口:
IntBiConsumer
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
@FunctionalInterface public interface IntForEachAction extends IntBiConsumer
Represents an operation that accepts two input arguments and returns no result. The first input argument isint-valued and usually consuming the each index in an array or a list. The second input argument is isint-valued usually consuming the each element in an array or a list. This is theint-consuming primitive type specialization ofForEachAction.This is a functional interface whose functional method is
accept(int, int).- 从以下版本开始:
- 2.5
- 另请参阅:
ForEachAction,IntBiConsumer
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 voidaccept(int index, int elemnt)Performs this operation on the given arguments.default IntForEachActionandThen(IntForEachAction after)Returns a composedIntForEachActionthat performs, in sequence, this operation followed by theafteroperation.-
从接口继承的方法 com.github.fmjsjx.libcommon.function.IntBiConsumer
andThen
-
-
-
-
方法详细资料
-
accept
void accept(int index, int elemnt)Performs this operation on the given arguments.- 指定者:
accept在接口中IntBiConsumer- 参数:
index- the indexelemnt- the element
-
andThen
default IntForEachAction andThen(IntForEachAction after)
Returns a composedIntForEachActionthat 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
IntForEachActionthat performs in sequence this operation followed by theafteroperation - 抛出:
java.lang.NullPointerException- ifafteris null
-
-