gnu.trove
Class TDoubleIterator

java.lang.Object
  extended by gnu.trove.TIterator
      extended by gnu.trove.TPrimitiveIterator
          extended by gnu.trove.TDoubleIterator

public class TDoubleIterator
extends TPrimitiveIterator

Iterator for double collections.

Version:
$Id: TDoubleIterator.java,v 1.2 2003/03/19 04:41:29 ericdf Exp $
Author:
Eric D. Friedman

Field Summary
private  TDoubleHash _hash
          the collection on which the iterator operates
 
Fields inherited from class gnu.trove.TIterator
_expectedSize, _index
 
Constructor Summary
TDoubleIterator(TDoubleHash hash)
          Creates a TDoubleIterator for the elements in the specified collection.
 
Method Summary
 double next()
          Advances the iterator to the next element in the underlying collection and returns it.
 
Methods inherited from class gnu.trove.TPrimitiveIterator
nextIndex
 
Methods inherited from class gnu.trove.TIterator
hasNext, moveToNextIndex, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_hash

private final TDoubleHash _hash
the collection on which the iterator operates

Constructor Detail

TDoubleIterator

public TDoubleIterator(TDoubleHash hash)
Creates a TDoubleIterator for the elements in the specified collection.

Method Detail

next

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

Returns:
the next double in the collection
Throws:
NoSuchElementException - if the iterator is already exhausted