Payload - The payload type.public final class LongSparseArrayIterable<Payload> extends Object implements ProtectedIterable<Entry<Long,Payload>>
LongSparseArrayIterable is a ProtectedIterable that generates
Iterators that iterate over a given LongSparseArray.
Calling iterator() creates an instance of
LongSparseArrayIterator.
| Constructor and Description |
|---|
LongSparseArrayIterable(LongSparseArray<? extends Payload> array)
Creates a new
LongSparseArrayIterable for the given LongSparseArray. |
public LongSparseArrayIterable(LongSparseArray<? extends Payload> array) throws IllegalArgumentException
LongSparseArrayIterable for the given LongSparseArray.array - The LongSparseArray to iterate over.IllegalArgumentException - If the given LongSparseArray is null.