utilities
Class SortedIterator
java.lang.Object
|
+--utilities.SortedIterator
- All Implemented Interfaces:
- java.util.Enumeration, java.util.Iterator
- public class SortedIterator
- extends java.lang.Object
- implements java.util.Iterator, java.util.Enumeration
this is a Iterator implementation that takes an Enumeration as input, and
provides sorted enumeration or iteration from it.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SortedIterator
public SortedIterator(java.util.Enumeration e)
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