Package it.unimi.dsi.fastutil.shorts
Class ShortIterators.UnmodifiableIterator
java.lang.Object
it.unimi.dsi.fastutil.shorts.ShortIterators.UnmodifiableIterator
- All Implemented Interfaces:
ShortIterator,Iterator<Short>
- Enclosing class:
- ShortIterators
public static class ShortIterators.UnmodifiableIterator extends Object implements ShortIterator
An unmodifiable wrapper class for iterators.
-
Constructor Summary
Constructors Constructor Description UnmodifiableIterator(ShortIterator i) -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.shorts.ShortIterator
forEachRemaining, forEachRemaining, next, skip
-
Constructor Details
-
Method Details
-
hasNext
public boolean hasNext() -
nextShort
public short nextShort()Description copied from interface:ShortIteratorReturns the next element as a primitive type.- Specified by:
nextShortin interfaceShortIterator- Returns:
- the next element in the iteration.
- See Also:
Iterator.next()
-