|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.commons.iterator.RangeIteratorDecorator
public class RangeIteratorDecorator
Base class for decorating RangeIterators.
| Constructor Summary | |
|---|---|
protected |
RangeIteratorDecorator(RangeIterator iterator)
Creates a decorated iterator. |
| Method Summary | |
|---|---|
long |
getPosition()
Delegated to the underlying iterator. |
long |
getSize()
Delegated to the underlying iterator. |
boolean |
hasNext()
Delegated to the underlying iterator. |
java.lang.Object |
next()
Delegated to the underlying iterator. |
void |
remove()
Delegated to the underlying iterator. |
void |
skip(long n)
Delegated to the underlying iterator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected RangeIteratorDecorator(RangeIterator iterator)
iterator - the iterator to be decorated| Method Detail |
|---|
public long getPosition()
getPosition in interface RangeIteratorpublic long getSize()
getSize in interface RangeIterator
public void skip(long n)
throws java.util.NoSuchElementException
skip in interface RangeIteratorn - number of elements to skip
java.util.NoSuchElementException - if skipped past the last elementpublic boolean hasNext()
hasNext in interface java.util.Iteratortrue if the iterator has more elements,
false otherwise
public java.lang.Object next()
throws java.util.NoSuchElementException
next in interface java.util.Iteratorjava.util.NoSuchElementException - if there are no more elements
public void remove()
throws java.lang.UnsupportedOperationException,
java.lang.IllegalStateException
remove in interface java.util.Iteratorjava.lang.UnsupportedOperationException - if the operation is not supported
java.lang.IllegalStateException - if there is no element to be removed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||