it.unimi.dsi.fastutil.doubles
Class DoubleIterators.UnmodifiableIterator

java.lang.Object
  extended by it.unimi.dsi.fastutil.doubles.AbstractDoubleIterator
      extended by it.unimi.dsi.fastutil.doubles.DoubleIterators.UnmodifiableIterator
All Implemented Interfaces:
DoubleIterator, Iterator<Double>
Enclosing class:
DoubleIterators

public static class DoubleIterators.UnmodifiableIterator
extends AbstractDoubleIterator

An unmodifiable wrapper class for iterators.


Constructor Summary
DoubleIterators.UnmodifiableIterator(DoubleIterator i)
           
 
Method Summary
 boolean hasNext()
           
 Double next()
          Delegates to the corresponding type-specific method.
 double nextDouble()
          Delegates to the corresponding generic method.
 
Methods inherited from class it.unimi.dsi.fastutil.doubles.AbstractDoubleIterator
remove, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleIterators.UnmodifiableIterator

public DoubleIterators.UnmodifiableIterator(DoubleIterator i)
Method Detail

hasNext

public boolean hasNext()

nextDouble

public double nextDouble()
Description copied from class: AbstractDoubleIterator
Delegates to the corresponding generic method.

Specified by:
nextDouble in interface DoubleIterator
Overrides:
nextDouble in class AbstractDoubleIterator
Returns:
the next element in the iteration.
See Also:
Iterator.next()

next

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

Specified by:
next in interface Iterator<Double>
Overrides:
next in class AbstractDoubleIterator