org.apache.commons.collections.primitives.adapters
public class DoubleIteratorIterator extends Object implements Iterator
DoubleIterator
to the
java.util.Iterator Iterator
interface.
This implementation delegates most methods
to the provided DoubleIterator
implementation in the "obvious" way.
Since: Commons Primitives 1.0
Version: $Revision: 1.3 $ $Date: 2003/10/16 20:49:38 $
Field Summary | |
---|---|
DoubleIterator | _iterator |
Constructor Summary | |
---|---|
DoubleIteratorIterator(DoubleIterator iterator)
Creates an Iterator Iterator wrapping
the specified DoubleIterator . |
Method Summary | |
---|---|
boolean | hasNext() |
Object | next() |
void | remove() |
static Iterator | wrap(DoubleIterator iterator)
Create an Iterator Iterator wrapping
the specified DoubleIterator . |
Iterator Iterator
wrapping
the specified DoubleIterator
. When
the given iterator is null
,
returns null
.
Parameters: iterator the (possibly null
)
DoubleIterator
to wrap
Returns: an Iterator Iterator
wrapping the given
iterator, or null
when iterator is
null
.