public class ArrayIterator extends Object implements RangeIterator
RangeIterator interface. This class
implements the RangeIterator functionality for an underlying array
of objects. Used as the base class for the type-specific iterator
classes defined in this package.| Constructor and Description |
|---|
ArrayIterator(Object[] array)
Creates an iterator for the given array of objects.
|
public ArrayIterator(Object[] array)
array - the objects to iteratepublic void skip(long items)
skip in interface RangeIteratorpublic long getSize()
getSize in interface RangeIteratorpublic long getPosition()
getPosition in interface RangeIteratorCopyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.