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