utilities
Class SortedHashtableIterator

java.lang.Object
  |
  +--utilities.SortedHashtableIterator
All Implemented Interfaces:
java.util.Enumeration, java.util.Iterator

public class SortedHashtableIterator
extends java.lang.Object
implements java.util.Iterator, java.util.Enumeration

this is a Iterator implementation that takes a hashtable as input, and returns values in sorted order.


Constructor Summary
SortedHashtableIterator(java.util.Hashtable h)
           
 
Method Summary
 boolean hasMoreElements()
           
 boolean hasNext()
           
 java.lang.Object next()
           
 java.lang.Object nextElement()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortedHashtableIterator

public SortedHashtableIterator(java.util.Hashtable h)
Method Detail

next

public java.lang.Object next()
                      throws java.util.NoSuchElementException
Specified by:
next in interface java.util.Iterator

nextElement

public java.lang.Object nextElement()
                             throws java.util.NoSuchElementException
Specified by:
nextElement in interface java.util.Enumeration

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface java.util.Enumeration

remove

public void remove()
            throws java.lang.UnsupportedOperationException
Specified by:
remove in interface java.util.Iterator