it.unimi.dsi.fastutil.ints
Class IntIterators.UnmodifiableIterator

java.lang.Object
  extended by it.unimi.dsi.fastutil.ints.AbstractIntIterator
      extended by it.unimi.dsi.fastutil.ints.IntIterators.UnmodifiableIterator
All Implemented Interfaces:
IntIterator, Iterator<Integer>
Enclosing class:
IntIterators

public static class IntIterators.UnmodifiableIterator
extends AbstractIntIterator

An unmodifiable wrapper class for iterators.


Constructor Summary
IntIterators.UnmodifiableIterator(IntIterator i)
           
 
Method Summary
 boolean hasNext()
           
 Integer next()
          Delegates to the corresponding type-specific method.
 int nextInt()
          Delegates to the corresponding generic method.
 
Methods inherited from class it.unimi.dsi.fastutil.ints.AbstractIntIterator
remove, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntIterators.UnmodifiableIterator

public IntIterators.UnmodifiableIterator(IntIterator i)
Method Detail

hasNext

public boolean hasNext()

nextInt

public int nextInt()
Description copied from class: AbstractIntIterator
Delegates to the corresponding generic method.

Specified by:
nextInt in interface IntIterator
Overrides:
nextInt in class AbstractIntIterator
Returns:
the next element in the iteration.
See Also:
Iterator.next()

next

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

Specified by:
next in interface Iterator<Integer>
Overrides:
next in class AbstractIntIterator