jade.util.leap
Class EnumIterator

java.lang.Object
  |
  +--jade.util.leap.EnumIterator
All Implemented Interfaces:
java.util.Iterator, Iterator

public class EnumIterator
extends java.lang.Object
implements Iterator

Implementation of an Iterator constructed by an Enumeration.

Version:
$Date: 2004-12-02 15:39:36 +0100 (Thu, 02 Dec 2004) $ $Revision: 5473 $
Author:
Fabio Bellifemine, TILAB

Constructor Summary
EnumIterator(java.util.Enumeration enumeration)
          Constructor declaration
 
Method Summary
 boolean hasNext()
          Checks whether the iterator can scan further by looking at the underlying Enumeration.
 java.lang.Object next()
          Retrieves the next element in the collection scanned by this iterator, forwarding the request to the underlying Enumeration.
 void remove()
          Remove the element pointed to by this iterator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumIterator

public EnumIterator(java.util.Enumeration enumeration)
Constructor declaration

Method Detail

hasNext

public boolean hasNext()
Checks whether the iterator can scan further by looking at the underlying Enumeration.

Specified by:
hasNext in interface java.util.Iterator
Returns:
The return value of the hasMoreElements() method of the underlying Enumeration..

next

public java.lang.Object next()
Retrieves the next element in the collection scanned by this iterator, forwarding the request to the underlying Enumeration.

Specified by:
next in interface java.util.Iterator
Returns:
The return value of the nextElement() of the underlying Enumeration.

remove

public void remove()
Remove the element pointed to by this iterator. This operation is not supported and this method will always throw a runtime exception

Specified by:
remove in interface java.util.Iterator


JADE