public final class SkipIterator extends Object implements Iterator<Object>, Closeable
| Constructor and Description |
|---|
SkipIterator(Exchange exchange,
Iterator<?> it,
int skip)
Creates a new skip iterator
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasNext() |
Object |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic SkipIterator(Exchange exchange, Iterator<?> it, int skip)
exchange - the exchange used to create this group iteratorit - the iteratorskip - number of times to skipIllegalArgumentException - is thrown if skip is not a positive numberpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionApache Camel