Package net.solarnetwork.util
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 TypeMethodDescriptionvoidforEachOrdered(int min, int max, ByteConsumer action) Iterate over a range of values in this collection.voidforEachOrdered(ByteConsumer action) Iterate over all primitive values in this collection.
-
Method Details
-
forEachOrdered
Iterate over all primitive values in this collection.This method of iteration can be more efficient than iterating via the
IteratorAPI because no unboxing of primitives is necessary.- Parameters:
action- the consumer to handle the values
-
forEachOrdered
Iterate over a range of values in this collection.This method of iteration can be more efficient than iterating via the
IteratorAPI 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
-