接口 LongForEachAction

所有超级接口:
LongBiConsumer
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface LongForEachAction extends LongBiConsumer
Represents an operation that accepts two input arguments and returns no result. The first input argument is long-valued and usually consuming the each index in an array or a list. The second input argument is is long-valued usually consuming the each element in an array or a list. This is the long-consuming primitive type specialization of ForEachAction.

This is a functional interface whose functional method is accept(long, long).

从以下版本开始:
2.5
另请参阅:
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    accept(long index, long elemnt)
    Performs this operation on the given arguments.
    Returns a composed LongForEachAction that performs, in sequence, this operation followed by the after operation.

    从接口继承的方法 com.github.fmjsjx.libcommon.function.LongBiConsumer

    andThen
  • 方法详细资料

    • accept

      void accept(long index, long elemnt)
      Performs this operation on the given arguments.
      指定者:
      accept 在接口中 LongBiConsumer
      参数:
      index - the index
      elemnt - the element
    • andThen

      default LongForEachAction andThen(LongForEachAction after)
      Returns a composed LongForEachAction 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 operation
      返回:
      a composed LongForEachAction that performs in sequence this operation followed by the after operation
      抛出:
      NullPointerException - if after is null