antlraux package
v0.2.1

antlraux.util
Class EnumerationIterator

java.lang.Object
  |
  +--antlraux.util.EnumerationIterator
All Implemented Interfaces:
java.util.Iterator

public class EnumerationIterator
extends java.lang.Object
implements java.util.Iterator

Transforms an Enumeration in an Iterator. It does NOT give a real implementation of Iterator.remove()

Author:
Enrique José García Cota
See Also:
IteratorEnumeration

Constructor Summary
EnumerationIterator(java.util.Enumeration e)
           
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumerationIterator

public EnumerationIterator(java.util.Enumeration e)
Method Detail

hasNext

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

next

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

remove

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

antlraux package
v0.2.1

Created by Enrique José García Cota