it.unimi.dsi.fastutil.shorts
Class ShortIterators.UnmodifiableIterator
java.lang.Object
it.unimi.dsi.fastutil.shorts.AbstractShortIterator
it.unimi.dsi.fastutil.shorts.ShortIterators.UnmodifiableIterator
- All Implemented Interfaces:
- ShortIterator, Iterator<Short>
- Enclosing class:
- ShortIterators
public static class ShortIterators.UnmodifiableIterator
- extends AbstractShortIterator
An unmodifiable wrapper class for iterators.
Method Summary |
boolean |
hasNext()
|
Short |
next()
Delegates to the corresponding type-specific method. |
short |
nextShort()
Delegates to the corresponding generic method. |
ShortIterators.UnmodifiableIterator
public ShortIterators.UnmodifiableIterator(ShortIterator i)
hasNext
public boolean hasNext()
nextShort
public short nextShort()
- Description copied from class:
AbstractShortIterator
- Delegates to the corresponding generic method.
- Specified by:
nextShort
in interface ShortIterator
- Overrides:
nextShort
in class AbstractShortIterator
- Returns:
- the next element in the iteration.
- See Also:
Iterator.next()
next
public Short next()
- Description copied from class:
AbstractShortIterator
- Delegates to the corresponding type-specific method.
- Specified by:
next
in interface Iterator<Short>
- Overrides:
next
in class AbstractShortIterator