|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.collections.primitives.adapters.IteratorDoubleIterator
public class IteratorDoubleIterator
Adapts a Number
-valued
Iterator
to the DoubleIterator
interface.
Iterator
implementation in the "obvious" way.
Field Summary | |
---|---|
private java.util.Iterator |
_iterator
|
Constructor Summary | |
---|---|
IteratorDoubleIterator(java.util.Iterator iterator)
Creates an DoubleIterator wrapping
the specified Iterator . |
Method Summary | |
---|---|
boolean |
hasNext()
Returns true iff I have more elements. |
double |
next()
Returns the next element in me. |
void |
remove()
Removes from my underlying collection the last element returned by me
(optional operation). |
static DoubleIterator |
wrap(java.util.Iterator iterator)
Create an DoubleIterator wrapping
the specified Iterator . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Iterator _iterator
Constructor Detail |
---|
public IteratorDoubleIterator(java.util.Iterator iterator)
DoubleIterator
wrapping
the specified Iterator
.
wrap(java.util.Iterator)
Method Detail |
---|
public static DoubleIterator wrap(java.util.Iterator iterator)
DoubleIterator
wrapping
the specified Iterator
. When
the given iterator is null
,
returns null
.
iterator
- the (possibly null
)
Iterator
to wrap
DoubleIterator
wrapping the given
iterator, or null
when iterator is
null
.public boolean hasNext()
DoubleIterator
true
iff I have more elements.
(In other words, returns true
iff
a subsequent call to next
will return
an element rather than throwing an exception.)
hasNext
in interface DoubleIterator
true
iff I have more elementspublic double next()
DoubleIterator
next
in interface DoubleIterator
public void remove()
DoubleIterator
returned
by me
(optional operation).
remove
in interface DoubleIterator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |