接口 IntBiConsumer

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

@FunctionalInterface public interface IntBiConsumer
Represents an operation that accepts two int-valued input arguments and returns no result. This is the int-consuming primitive type specialization of BiConsumer.

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

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

    修饰符和类型
    方法
    说明
    void
    accept(int left, int right)
    Performs this operation on the given arguments.
    Returns a composed IntBiConsumer that performs, in sequence, this operation followed by the after operation.
  • 方法详细资料

    • accept

      void accept(int left, int right)
      Performs this operation on the given arguments.
      参数:
      left - the first input argument
      right - the second input argument
    • andThen

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