protected static class IntIterators.ShortIteratorWrapper extends java.lang.Object implements IntIterator
| Constructor and Description |
|---|
ShortIteratorWrapper(ShortIterator iterator) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
java.lang.Integer |
next() |
int |
nextInt()
Returns the next element as a primitive type.
|
void |
remove() |
int |
skip(int n)
Skips the given number of elements.
|
public ShortIteratorWrapper(ShortIterator iterator)
public boolean hasNext()
hasNext in interface java.util.Iterator<java.lang.Integer>public java.lang.Integer next()
next in interface java.util.Iterator<java.lang.Integer>public int nextInt()
IntIteratornextInt in interface IntIteratorIterator.next()public void remove()
remove in interface java.util.Iterator<java.lang.Integer>public int skip(int n)
IntIterator
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).
skip in interface IntIteratorn - the number of elements to skip.Iterator.next()