public class SparseArrayIterator
extends java.lang.Object
implements java.util.Iterator
nulls.| Modifier and Type | Method and Description |
|---|---|
static java.util.Iterator |
buildIterator(java.lang.Object[] array)
Build iterator.
|
boolean |
hasNext()
Check for iteration element available.
|
java.lang.Object |
next()
Get next iteration element.
|
void |
remove()
Remove element from iteration.
|
public boolean hasNext()
hasNext in interface java.util.Iteratortrue if element available, false if
notpublic java.lang.Object next()
next in interface java.util.Iteratorjava.util.NoSuchElementException - if past end of iterationpublic void remove()
remove in interface java.util.Iteratorjava.lang.UnsupportedOperationException - for unsupported operationpublic static java.util.Iterator buildIterator(java.lang.Object[] array)
array - array containing values to be iterated (may be
null)