|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jibx.runtime.impl.SparseArrayIterator
public class SparseArrayIterator
Iterator class for sparse values in an array. This type of iterator
can be used for an object array which has references interspersed with
nulls.
| Field Summary | |
|---|---|
protected Object[] |
m_array
Array supplying values for iteration. |
protected int |
m_offset
Offset of next iteration value. |
| Method Summary | |
|---|---|
protected boolean |
advance()
Advance to next iteration value. |
static Iterator |
buildIterator(Object[] array)
Build iterator. |
boolean |
hasNext()
Check for iteration element available. |
Object |
next()
Get next iteration element. |
void |
remove()
Remove element from iteration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Object[] m_array
protected int m_offset
| Method Detail |
|---|
protected boolean advance()
null value.
true if element available, false if
notpublic boolean hasNext()
hasNext in interface Iteratortrue if element available, false if
notpublic Object next()
next in interface IteratorNoSuchElementException - if past end of iterationpublic void remove()
remove in interface IteratorUnsupportedOperationException - for unsupported operationpublic static Iterator buildIterator(Object[] array)
array - array containing values to be iterated (may be
null)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||