public class RangeIteratorDecorator extends java.lang.Object implements RangeIterator
RangeIterator
s.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.
|
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.
|
public long getPosition()
getPosition
in interface RangeIterator
public long getSize()
getSize
in interface RangeIterator
public void skip(long n) throws java.util.NoSuchElementException
skip
in interface RangeIterator
n
- number of elements to skipjava.util.NoSuchElementException
- if skipped past the last elementpublic boolean hasNext()
hasNext
in interface java.util.Iterator
true
if the iterator has more elements,
false
otherwisepublic java.lang.Object next() throws java.util.NoSuchElementException
next
in interface java.util.Iterator
java.util.NoSuchElementException
- if there are no more elementspublic void remove() throws java.lang.UnsupportedOperationException, java.lang.IllegalStateException
remove
in interface java.util.Iterator
java.lang.UnsupportedOperationException
- if the operation is not supportedjava.lang.IllegalStateException
- if there is no element to be removedCopyright © 2010 - 2020 Adobe. All Rights Reserved