public class SparseArrayIterator
extends java.lang.Object
implements java.util.Iterator
null
s.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.Iterator
true
if element available, false
if
notpublic java.lang.Object next()
next
in interface java.util.Iterator
java.util.NoSuchElementException
- if past end of iterationpublic void remove()
remove
in interface java.util.Iterator
java.lang.UnsupportedOperationException
- for unsupported operationpublic static java.util.Iterator buildIterator(java.lang.Object[] array)
array
- array containing values to be iterated (may be
null
)