org.castor.core.util
Class EnumerationIterator

java.lang.Object
  extended by org.castor.core.util.EnumerationIterator
All Implemented Interfaces:
java.util.Iterator

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

Convert an enumeration to an iterator.

Since:
1.0.4
Version:
$Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
Author:
Ralf Joachim

Constructor Summary
EnumerationIterator(java.util.Enumeration enumeration)
          Construct an iterator for given enumeration.
 
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 enumeration)
Construct an iterator for given enumeration.

Parameters:
enumeration - Enumeration to iterate over.
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


Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com