| java.lang.Object org.jibx.runtime.impl.ArrayRangeIterator
ArrayRangeIterator | public class ArrayRangeIterator implements Iterator(Code) | | 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.
author: Dennis M. Sosnoski version: 1.1 |
Method Summary | |
public static Iterator | buildIterator(Object[] array, int start, int limit) Build iterator. | public boolean | hasNext() Check for iteration element available. | public Object | next() Get next iteration element. | public void | remove() Remove element from iteration. |
m_array | protected Object[] m_array(Code) | | Array supplying values for iteration.
|
m_limit | protected int m_limit(Code) | | Ending offset for values.
|
m_offset | protected int m_offset(Code) | | Offset of next iteration value.
|
buildIterator | public static Iterator buildIterator(Object[] array, int start, int limit)(Code) | | Build iterator.
Parameters: array - array containing values to be iterated (may benull ) Parameters: start - starting offset in array Parameters: limit - offset past end of values constructed iterator |
hasNext | public boolean hasNext()(Code) | | Check for iteration element available.
true if element available, false ifnot |
remove | public void remove()(Code) | | Remove element from iteration. This optional operation is not supported
and always throws an exception.
exception: UnsupportedOperationException - for unsupported operation |
|
|