org.apache.commons.collections.primitives.adapters

Class IteratorFloatIterator

public class IteratorFloatIterator extends Object implements FloatIterator

Adapts a java.lang.Number Number-valued Iterator Iterator to the FloatIterator interface.

This implementation delegates most methods to the provided Iterator Iterator implementation in the "obvious" way.

Since: Commons Primitives 1.0

Version: $Revision: 1.3 $ $Date: 2003/10/16 20:49:38 $

Author: Rodney Waldhoff

Field Summary
Iterator_iterator
Constructor Summary
IteratorFloatIterator(Iterator iterator)
Creates an FloatIterator wrapping the specified Iterator Iterator.
Method Summary
booleanhasNext()
floatnext()
voidremove()
static FloatIteratorwrap(Iterator iterator)
Create an FloatIterator wrapping the specified Iterator Iterator.

Field Detail

_iterator

private Iterator _iterator

Constructor Detail

IteratorFloatIterator

public IteratorFloatIterator(Iterator iterator)
Creates an FloatIterator wrapping the specified Iterator Iterator.

See Also: IteratorFloatIterator

Method Detail

hasNext

public boolean hasNext()

next

public float next()

remove

public void remove()

wrap

public static FloatIterator wrap(Iterator iterator)
Create an FloatIterator wrapping the specified Iterator Iterator. When the given iterator is null, returns null.

Parameters: iterator the (possibly null) Iterator Iterator to wrap

Returns: an FloatIterator wrapping the given iterator, or null when iterator is null.

Copyright (c) 2002-2003 - Apache Software Foundation