public interface SkippingIterator<V> extends Iterator<V>
Iterator.next()
repeatedly.Modifier and Type | Method and Description |
---|---|
void |
skip(int n)
Skip the next n elements supplied by this
Iterator . |
forEachRemaining, hasNext, next, remove
void skip(int n)
Iterator
. If there are less than n elements remaining,
this skips all remaining elements in the Iterator
. This method has the same effect as calling
Iterator.next()
n times, except that it will never throw NoSuchElementException
.Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.