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

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


Constructor Summary
ShortIterators.UnmodifiableIterator(ShortIterator i)
           
 
Method Summary
 boolean hasNext()
           
 Short 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
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