public interface ObjectIterator<K> extends Iterator<K>
Iterator; provides an additional method to avoid (un)boxing, and
the possibility to skip elements.Iterator| 修飾子とタイプ | メソッドと説明 |
|---|---|
int |
skip(int n)
Skips the given number of elements.
|
forEachRemaining, hasNext, next, removeint skip(int n)
The effect of this call is exactly the same as that of
calling Iterator.next() for n times (possibly stopping
if Iterator.hasNext() becomes false).
n - the number of elements to skip.Iterator.next()Copyright © 2011–2016. All rights reserved.