jwutil.collections
Class EnumerationIterator

java.lang.Object
  extended by jwutil.collections.UnmodifiableIterator
      extended by jwutil.collections.EnumerationIterator
All Implemented Interfaces:
java.util.Iterator

public class EnumerationIterator
extends UnmodifiableIterator
implements java.util.Iterator

An EnumerationIterator converts an Enumeration into an Iterator.

Version:
$Id: EnumerationIterator.java 1934 2004-09-27 22:42:35Z joewhaley $
Author:
C. Scott Ananian

Constructor Summary
EnumerationIterator(java.util.Enumeration e)
          Creates a EnumerationIterator.
 
Method Summary
 boolean hasNext()
          Returns true if the iteration has more elements.
 java.lang.Object next()
          Returns the next element in the iteration.
 
Methods inherited from class jwutil.collections.UnmodifiableIterator
remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Iterator
remove
 

Constructor Detail

EnumerationIterator

public EnumerationIterator(java.util.Enumeration e)
Creates a EnumerationIterator.

Method Detail

hasNext

public boolean hasNext()
Description copied from class: UnmodifiableIterator
Returns true if the iteration has more elements.

Specified by:
hasNext in interface java.util.Iterator
Specified by:
hasNext in class UnmodifiableIterator
Returns:
true if the iterator has more elements.

next

public java.lang.Object next()
Description copied from class: UnmodifiableIterator
Returns the next element in the iteration.

Specified by:
next in interface java.util.Iterator
Specified by:
next in class UnmodifiableIterator


Copyright © 2004-2008 SUIF Compiler Group. All Rights Reserved.