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