gnu.trove

Class TFloatIterator

public class TFloatIterator extends TPrimitiveIterator

Iterator for float collections.

Version: $Id: TFloatIterator.java,v 1.2 2003/03/19 04:41:29 ericdf Exp $

Author: Eric D. Friedman

Field Summary
TFloatHash_hash
the collection on which the iterator operates
Constructor Summary
TFloatIterator(TFloatHash hash)
Creates a TFloatIterator for the elements in the specified collection.
Method Summary
floatnext()
Advances the iterator to the next element in the underlying collection and returns it.

Field Detail

_hash

private final TFloatHash _hash
the collection on which the iterator operates

Constructor Detail

TFloatIterator

public TFloatIterator(TFloatHash hash)
Creates a TFloatIterator for the elements in the specified collection.

Method Detail

next

public float next()
Advances the iterator to the next element in the underlying collection and returns it.

Returns: the next float in the collection

Throws: NoSuchElementException if the iterator is already exhausted