public class RangeIteratorDecorator extends Object implements javax.jcr.RangeIterator
RangeIterator
s.Modifier | Constructor and Description |
---|---|
protected |
RangeIteratorDecorator(javax.jcr.RangeIterator iterator)
Creates a decorated iterator.
|
Modifier and Type | Method and Description |
---|---|
long |
getPosition()
Delegated to the underlying iterator.
|
long |
getSize()
Delegated to the underlying iterator.
|
boolean |
hasNext()
Delegated to the underlying iterator.
|
Object |
next()
Delegated to the underlying iterator.
|
void |
remove()
Delegated to the underlying iterator.
|
void |
skip(long n)
Delegated to the underlying iterator.
|
protected RangeIteratorDecorator(javax.jcr.RangeIterator iterator)
iterator
- the iterator to be decoratedpublic long getPosition()
getPosition
in interface javax.jcr.RangeIterator
public long getSize()
getSize
in interface javax.jcr.RangeIterator
public void skip(long n) throws NoSuchElementException
skip
in interface javax.jcr.RangeIterator
n
- number of elements to skipNoSuchElementException
- if skipped past the last elementpublic boolean hasNext()
public Object next() throws NoSuchElementException
next
in interface Iterator
NoSuchElementException
- if there are no more elementspublic void remove() throws UnsupportedOperationException, IllegalStateException
remove
in interface Iterator
UnsupportedOperationException
- if the operation is not supportedIllegalStateException
- if there is no element to be removedCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.