public static class DoubleIterators.UnmodifiableIterator extends Object implements DoubleIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong| Constructor and Description |
|---|
UnmodifiableIterator(DoubleIterator i) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Returns
true if the iteration has more elements. |
double |
nextDouble()
Returns the next element as a primitive type.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, next, skipforEachRemainingpublic UnmodifiableIterator(DoubleIterator i)
public boolean hasNext()
java.util.Iteratortrue if the iteration has more elements.
(In other words, returns true if Iterator.next() would
return an element rather than throwing an exception.)public double nextDouble()
DoubleIteratornextDouble in interface DoubleIteratornextDouble in interface PrimitiveIterator.OfDoubleIterator.next()