edu.olemiss.cs211
Class HashTable.HashTableIterator<V1 extends V>

java.lang.Object
  extended by edu.olemiss.cs211.HashTable.HashTableIterator<V1>
Type Parameters:
V -
All Implemented Interfaces:
java.util.Iterator<V>
Enclosing class:
HashTable<K,V>

public class HashTable.HashTableIterator<V1 extends V>
extends java.lang.Object
implements java.util.Iterator<V>

An iterator class that iterates over all the values stored in a HashTable.

Author:
rhodes

Constructor Summary
HashTable.HashTableIterator(HashTable<K,V> theTable)
          Create a HashTableIterator associated with the given hash table.
 
Method Summary
 boolean hasNext()
          Indicates whether the iterator has any more values.
 V next()
          Returns the next value in the hash table iteration.
 void remove()
          Unsupported Operation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashTable.HashTableIterator

public HashTable.HashTableIterator(HashTable<K,V> theTable)
Create a HashTableIterator associated with the given hash table.

Parameters:
theTable -
Method Detail

next

public V next()
Returns the next value in the hash table iteration.

Specified by:
next in interface java.util.Iterator<V>

hasNext

public boolean hasNext()
Indicates whether the iterator has any more values.

Specified by:
hasNext in interface java.util.Iterator<V>

remove

public void remove()
Unsupported Operation.

Specified by:
remove in interface java.util.Iterator<V>