public class DoubleIteratorIterator
extends java.lang.Object
implements java.util.Iterator
DoubleIterator to the
Iterator interface.
This implementation delegates most methods
to the provided DoubleIterator
implementation in the "obvious" way.| Modifier and Type | Field and Description |
|---|---|
private DoubleIterator |
_iterator |
| Constructor and Description |
|---|
DoubleIteratorIterator(DoubleIterator iterator)
Creates an
Iterator wrapping
the specified DoubleIterator. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
java.lang.Object |
next() |
void |
remove() |
static java.util.Iterator |
wrap(DoubleIterator iterator)
Create an
Iterator wrapping
the specified DoubleIterator. |
private DoubleIterator _iterator
public DoubleIteratorIterator(DoubleIterator iterator)
Iterator wrapping
the specified DoubleIterator.public static java.util.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.public boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorpublic void remove()
remove in interface java.util.IteratorCopyright (c) 2002-2003 - Apache Software Foundation