|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jibx.runtime.impl.ArrayRangeIterator
public class ArrayRangeIterator
Iterator class for values contained in an array range. This type of iterator can be used for any contiguous range of items in an object array.
| Field Summary | |
|---|---|
static ArrayRangeIterator |
EMPTY_ITERATOR
Empty iterator used whenever possible. |
protected Object[] |
m_array
Array supplying values for iteration. |
protected int |
m_limit
Ending offset for values. |
protected int |
m_offset
Offset of next iteration value. |
| Method Summary | |
|---|---|
static Iterator |
buildIterator(Object[] array,
int start,
int limit)
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 |
|---|
public static final ArrayRangeIterator EMPTY_ITERATOR
protected Object[] m_array
protected int m_offset
protected int m_limit
| Method Detail |
|---|
public 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 operation
public static Iterator buildIterator(Object[] array,
int start,
int limit)
array - array containing values to be iterated (may be
null)start - starting offset in arraylimit - offset past end of values
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||