接口 IntConsumer


public interface IntConsumer
An IntConsumer receives the int values contained in a data structure. Each value is visited once. Usage:
 
  bitmap.forEach(new IntConsumer() {

    public void accept(int value) {
      // do something here
      
    }});
   
 }
 
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    accept(int value)
    Receives the integer
  • 方法详细资料

    • accept

      void accept(int value)
      Receives the integer
      参数:
      value - the integer value