it.unimi.dsi.fastutil.longs
Class LongIterators.UnmodifiableIterator

java.lang.Object
  extended by it.unimi.dsi.fastutil.longs.AbstractLongIterator
      extended by it.unimi.dsi.fastutil.longs.LongIterators.UnmodifiableIterator
All Implemented Interfaces:
LongIterator, Iterator<Long>
Enclosing class:
LongIterators

public static class LongIterators.UnmodifiableIterator
extends AbstractLongIterator

An unmodifiable wrapper class for iterators.


Constructor Summary
LongIterators.UnmodifiableIterator(LongIterator i)
           
 
Method Summary
 boolean hasNext()
           
 Long next()
          Delegates to the corresponding type-specific method.
 long nextLong()
          Delegates to the corresponding generic method.
 
Methods inherited from class it.unimi.dsi.fastutil.longs.AbstractLongIterator
remove, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongIterators.UnmodifiableIterator

public LongIterators.UnmodifiableIterator(LongIterator i)
Method Detail

hasNext

public boolean hasNext()

nextLong

public long nextLong()
Description copied from class: AbstractLongIterator
Delegates to the corresponding generic method.

Specified by:
nextLong in interface LongIterator
Overrides:
nextLong in class AbstractLongIterator
Returns:
the next element in the iteration.
See Also:
Iterator.next()

next

public Long next()
Description copied from class: AbstractLongIterator
Delegates to the corresponding type-specific method.

Specified by:
next in interface Iterator<Long>
Overrides:
next in class AbstractLongIterator