protected static class LongIterators.IntIteratorWrapper extends Object implements LongIterator
| Constructor and Description |
|---|
IntIteratorWrapper(IntIterator iterator) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
Long |
next() |
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, waitforEachRemainingpublic IntIteratorWrapper(IntIterator iterator)
public long nextLong()
LongIteratornextLong in interface LongIteratorIterator.next()public int skip(int n)
LongIteratorThe effect of this call is exactly the same as that of
calling Iterator.next() for n times (possibly stopping
if Iterator.hasNext() becomes false).
skip in interface LongIteratorn - the number of elements to skip.Iterator.next()Copyright © 2016. All rights reserved.