Interface 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
      
    }});
   
 }
 
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(long value)
    Receives the long
  • Method Details

    • accept

      void accept(long value)
      Receives the long
      Parameters:
      value - the long value