Package com.day.util
Class IteratorEnumeration
- java.lang.Object
 - 
- com.day.util.IteratorEnumeration
 
 
- 
- All Implemented Interfaces:
 java.util.Enumeration
public class IteratorEnumeration extends java.lang.Object implements java.util.EnumerationAnIteratorEnumerationprovides a one-to-one mapping from the pre Java 2Enumerationto the Java 2Iterator- Since:
 - antbear
 
 
- 
- 
Constructor Summary
Constructors Constructor Description IteratorEnumeration(java.util.Iterator iter)Create a newIteratorEnumerationgiven anIteratorthat backs up theEnumeration 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasMoreElements()Tests if this enumeration contains more elements.java.lang.ObjectnextElement()Returns the next element of this enumeration if this enumeration object has at least one more element to provide. 
 - 
 
- 
- 
Method Detail
- 
hasMoreElements
public boolean hasMoreElements()
Tests if this enumeration contains more elements.- Specified by:
 hasMoreElementsin interfacejava.util.Enumeration- Returns:
 trueif and only if this enumeration object contains at least one more element to provide;falseotherwise.
 
- 
nextElement
public java.lang.Object nextElement()
Returns the next element of this enumeration if this enumeration object has at least one more element to provide.- Specified by:
 nextElementin interfacejava.util.Enumeration- Returns:
 - the next element of this enumeration.
 
 
 - 
 
 -