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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
short
nextShort()
Returns the next element as a primitive type.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface it.unimi.dsi.fastutil.shorts.ShortIterator
forEachRemaining, forEachRemaining, next, skip
-
-
-
-
Constructor Detail
-
UnmodifiableIterator
public UnmodifiableIterator(ShortIterator i)
-
-
Method Detail
-
nextShort
public short nextShort()
Description copied from interface:ShortIterator
Returns the next element as a primitive type.- Specified by:
nextShort
in interfaceShortIterator
- Returns:
- the next element in the iteration.
- See Also:
Iterator.next()
-
-