Package it.unimi.dsi.fastutil.doubles
Class DoubleIterators.UnmodifiableIterator
- java.lang.Object
-
- it.unimi.dsi.fastutil.doubles.DoubleIterators.UnmodifiableIterator
-
- All Implemented Interfaces:
DoubleIterator
,java.util.Iterator<java.lang.Double>
,java.util.PrimitiveIterator<java.lang.Double,java.util.function.DoubleConsumer>
,java.util.PrimitiveIterator.OfDouble
- Enclosing class:
- DoubleIterators
public static class DoubleIterators.UnmodifiableIterator extends java.lang.Object implements DoubleIterator
An unmodifiable wrapper class for iterators.
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableIterator(DoubleIterator i)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
forEachRemaining(java.util.function.Consumer<? super java.lang.Double> action)
Deprecated.void
forEachRemaining(java.util.function.DoubleConsumer action)
boolean
hasNext()
double
nextDouble()
Returns the next element as a primitive type.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface it.unimi.dsi.fastutil.doubles.DoubleIterator
forEachRemaining, next, skip
-
-
-
-
Constructor Detail
-
UnmodifiableIterator
public UnmodifiableIterator(DoubleIterator i)
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<java.lang.Double>
-
nextDouble
public double nextDouble()
Description copied from interface:DoubleIterator
Returns the next element as a primitive type.- Specified by:
nextDouble
in interfaceDoubleIterator
- Specified by:
nextDouble
in interfacejava.util.PrimitiveIterator.OfDouble
- Returns:
- the next element in the iteration.
- See Also:
Iterator.next()
-
forEachRemaining
public void forEachRemaining(java.util.function.DoubleConsumer action)
- Specified by:
forEachRemaining
in interfacejava.util.PrimitiveIterator<java.lang.Double,java.util.function.DoubleConsumer>
- Specified by:
forEachRemaining
in interfacejava.util.PrimitiveIterator.OfDouble
-
forEachRemaining
@Deprecated public void forEachRemaining(java.util.function.Consumer<? super java.lang.Double> action)
Deprecated.Description copied from interface:DoubleIterator
- Specified by:
forEachRemaining
in interfaceDoubleIterator
- Specified by:
forEachRemaining
in interfacejava.util.Iterator<java.lang.Double>
- Specified by:
forEachRemaining
in interfacejava.util.PrimitiveIterator.OfDouble
-
-