接口 LongConsumer


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

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

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

    • accept

      void accept(long value)
      Receives the long
      参数:
      value - the long value