it.unimi.dsi.fastutil.ints
Class IntIterators.ShortIteratorWrapper
java.lang.Object
it.unimi.dsi.fastutil.ints.IntIterators.ShortIteratorWrapper
- All Implemented Interfaces:
- IntIterator, Iterator<Integer>
- Enclosing class:
- IntIterators
protected static class IntIterators.ShortIteratorWrapper
- extends Object
- implements IntIterator
A wrapper promoting the results of a ShortIterator.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntIterators.ShortIteratorWrapper
public IntIterators.ShortIteratorWrapper(ShortIterator iterator)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<Integer>
next
public Integer next()
- Specified by:
next
in interface Iterator<Integer>
nextInt
public int nextInt()
- Description copied from interface:
IntIterator
- Returns the next element as a primitive type.
- Specified by:
nextInt
in interface IntIterator
- Returns:
- the next element in the iteration.
- See Also:
Iterator.next()
remove
public void remove()
- Specified by:
remove
in interface Iterator<Integer>
skip
public int skip(int n)
- Description copied from interface:
IntIterator
- Skips the given number of elements.
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).
- Specified by:
skip
in interface IntIterator
- Parameters:
n
- the number of elements to skip.
- Returns:
- the number of elements actually skipped.
- See Also:
Iterator.next()
Copyright © 2011. All Rights Reserved.