Array implementation of the JCR
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.
@Deprecated public class ArrayIterator extends Object implements RangeIterator
Constructor and Description |
---|
ArrayIterator(Object[] array)
Deprecated.
Creates an iterator for the given array of objects.
|
Modifier and Type | Method and Description |
---|---|
long |
getPosition()
Deprecated.
|
long |
getSize()
Deprecated.
|
boolean |
hasNext()
Deprecated.
|
Object |
next()
Deprecated.
|
void |
remove()
Deprecated.
|
void |
skip(long items)
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public ArrayIterator(Object[] array)
array
- the objects to iteratepublic void skip(long items)
skip
in interface RangeIterator
public long getSize()
getSize
in interface RangeIterator
public long getPosition()
getPosition
in interface RangeIterator
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.