protected static class LongIterators.IntIteratorWrapper extends Object implements LongIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong| Constructor and Description |
|---|
IntIteratorWrapper(IntIterator iterator) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
Long |
next()
Deprecated.
|
long |
nextLong()
Returns the next element as a primitive type.
|
void |
remove() |
int |
skip(int n)
Skips the given number of elements.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingforEachRemainingpublic IntIteratorWrapper(IntIterator iterator)
@Deprecated public Long next()
LongIteratornext in interface LongIteratornext in interface Iterator<Long>next in interface PrimitiveIterator.OfLongpublic long nextLong()
LongIteratornextLong in interface LongIteratornextLong in interface PrimitiveIterator.OfLongIterator.next()public int skip(int n)
LongIteratorThe effect of this call is exactly the same as that of calling LongIterator.next() for n times (possibly stopping if Iterator.hasNext() becomes false).
skip in interface LongIteratorn - the number of elements to skip.Iterator.next()Copyright © 2020. All rights reserved.