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.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SortedHashtableIterator
public SortedHashtableIterator(java.util.Hashtable h)
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