Interface ShortConsumer


public interface ShortConsumer
A ShortConsumer receives the short values contained in a data structure. Each value is visited once.

Usage:

 
 bitmap.forEach(new ShortConsumer() {
     public boolean accept(short value) {
         // do something here
     }
 });
 
 
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(short value)
    Provides a value to this consumer.
  • Method Details

    • accept

      boolean accept(short value)
      Provides a value to this consumer. A false return value indicates that the application providing values to this consumer should not invoke it again.
      Parameters:
      value - the short value
      Returns:
      false if don't want any more values after this one, true otherwise.