it.unimi.dsi.fastutil.shorts
Class ShortIterators.UnmodifiableIterator

java.lang.Object
  extended byit.unimi.dsi.fastutil.shorts.AbstractShortIterator
      extended byit.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.


Constructor Summary
ShortIterators.UnmodifiableIterator(ShortIterator i)
           
 
Method Summary
 boolean hasNext()
           
 Object next()
          Delegates to the corresponding type-specific method.
 short nextShort()
          Delegates to the corresponding generic method.
 
Methods inherited from class it.unimi.dsi.fastutil.shorts.AbstractShortIterator
remove, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShortIterators.UnmodifiableIterator

public ShortIterators.UnmodifiableIterator(ShortIterator i)
Method Detail

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