|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.rmi.iterator.ArrayIterator
public class ArrayIterator
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.
Constructor Summary | |
---|---|
ArrayIterator(Object[] array)
Creates an iterator for the given array of objects. |
Method Summary | |
---|---|
long |
getPosition()
|
long |
getSize()
|
boolean |
hasNext()
|
Object |
next()
|
void |
remove()
|
void |
skip(long items)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArrayIterator(Object[] array)
array
- the objects to iterateMethod Detail |
---|
public boolean hasNext()
hasNext
in interface Iterator
public Object next()
next
in interface Iterator
public void remove()
remove
in interface Iterator
public void skip(long items)
skip
in interface RangeIterator
public long getSize()
getSize
in interface RangeIterator
public long getPosition()
getPosition
in interface RangeIterator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |