Package com.jalios.util
Class Enumerator
java.lang.Object
com.jalios.util.Enumerator
- All Implemented Interfaces:
Iterator
This class wraps an enumeration around an iterator.
- Author:
- Olivier Dedieu
-
Constructor Summary
ConstructorsConstructorDescriptionEnumerator(Enumeration enu) Creates an iterator wraps around the given enumeration -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
Enumerator
Creates an iterator wraps around the given enumeration- Parameters:
enu- enumeration on the data.
-
-
Method Details
-
hasNext
public final boolean hasNext()Checks whether there are more elements to be processed. -
next
Returns the next element in the iteration. It retrieves the next data and returns the owner of this data. -
remove
Removes from the underlying collection the last element returned by the iterator. This operation is not implemented.- Specified by:
removein interfaceIterator- Throws:
UnsupportedOperationException
-