gnu.trove

Class TLongIterator

public class TLongIterator extends TPrimitiveIterator

Iterator for long collections.

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

Author: Eric D. Friedman

Field Summary
TLongHash_hash
the collection on which the iterator operates
Constructor Summary
TLongIterator(TLongHash hash)
Creates a TLongIterator for the elements in the specified collection.
Method Summary
longnext()
Advances the iterator to the next element in the underlying collection and returns it.

Field Detail

_hash

private final TLongHash _hash
the collection on which the iterator operates

Constructor Detail

TLongIterator

public TLongIterator(TLongHash hash)
Creates a TLongIterator for the elements in the specified collection.

Method Detail

next

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

Returns: the next long in the collection

Throws: NoSuchElementException if the iterator is already exhausted