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

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

    • accept

      void accept(int value)
      Receives the integer
      Parameters:
      value - the integer value