public class DoubleIteratorIterator extends Object implements Iterator
DoubleIterator to the
Iterator interface.
This implementation delegates most methods
to the provided DoubleIterator
implementation in the "obvious" way.
| Constructor and Description |
|---|
DoubleIteratorIterator(DoubleIterator iterator)
Creates an
Iterator wrapping
the specified DoubleIterator. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
Object |
next() |
void |
remove() |
static Iterator |
wrap(DoubleIterator iterator)
Create an
Iterator wrapping
the specified DoubleIterator. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic DoubleIteratorIterator(DoubleIterator iterator)
Iterator wrapping
the specified DoubleIterator.public static Iterator wrap(DoubleIterator iterator)
Iterator wrapping
the specified DoubleIterator. When
the given iterator is null,
returns null.iterator - the (possibly null)
DoubleIterator to wrapIterator wrapping the given
iterator, or null when iterator is
null.Copyright © 2002–2025 The Apache Software Foundation. All rights reserved.