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