Interface ByteOrderedIterable

All Known Implementing Classes:
ByteList

public interface ByteOrderedIterable
API for a collection that supports ordered iteration over byte values.
Since:
1.58
Version:
1.0
Author:
matt
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    forEachOrdered(int min, int max, ByteConsumer action)
    Iterate over a range of values in this collection.
    void
    Iterate over all primitive values in this collection.
  • Method Details

    • forEachOrdered

      void forEachOrdered(ByteConsumer action)
      Iterate over all primitive values in this collection.

      This method of iteration can be more efficient than iterating via the Iterator API because no unboxing of primitives is necessary.

      Parameters:
      action - the consumer to handle the values
    • forEachOrdered

      void forEachOrdered(int min, int max, ByteConsumer action)
      Iterate over a range of values in this collection.

      This method of iteration can be more efficient than iterating via the Iterator API because no unboxing of primitives is necessary.

      Parameters:
      min - the minimum key value (inclusive)
      max - the maximum key value (exclusive)
      action - the consumer to handle the values