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:
- Iterator, ShortIterator
- Enclosing class:
- ShortIterators
- public static class ShortIterators.UnmodifiableIterator
- extends AbstractShortIterator
An unmodifiable wrapper class for iterators.
Method Summary |
boolean |
hasNext()
|
Object |
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
next
public Object next()
- Description copied from class:
AbstractShortIterator
- Delegates to the corresponding type-specific method.
- Specified by:
next
in interface Iterator
- Overrides:
next
in class AbstractShortIterator