it.unimi.dsi.fastutil.doubles
Class DoubleIterators.UnmodifiableIterator
java.lang.Object
it.unimi.dsi.fastutil.doubles.AbstractDoubleIterator
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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
i
protected final DoubleIterator i
DoubleIterators.UnmodifiableIterator
public DoubleIterators.UnmodifiableIterator(DoubleIterator i)
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
Copyright © 2011. All Rights Reserved.