public class IteratorFloatIterator extends Object implements FloatIterator
Number-valued
Iterator
to the FloatIterator
interface.
This implementation delegates most methods
to the provided Iterator
implementation in the "obvious" way.| Constructor and Description |
|---|
IteratorFloatIterator(Iterator iterator)
Creates an
FloatIterator wrapping
the specified Iterator. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Returns
true iff I have more elements. |
float |
next()
Returns the next element in me.
|
void |
remove()
Removes from my underlying collection the last
element
returned by me
(optional operation). |
static FloatIterator |
wrap(Iterator iterator)
Create an
FloatIterator wrapping
the specified Iterator. |
public IteratorFloatIterator(Iterator iterator)
FloatIterator wrapping
the specified Iterator.wrap(java.util.Iterator)public static FloatIterator wrap(Iterator iterator)
FloatIterator wrapping
the specified Iterator. When
the given iterator is null,
returns null.iterator - the (possibly null)
Iterator to wrapFloatIterator wrapping the given
iterator, or null when iterator is
null.public boolean hasNext()
FloatIteratortrue 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 FloatIteratortrue iff I have more elementspublic float next()
FloatIteratornext in interface FloatIteratorpublic void remove()
FloatIteratorreturned by me
(optional operation).remove in interface FloatIteratorCopyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.