Class EnumerationIterator<T>
java.lang.Object
org.codehaus.commons.compiler.util.iterator.EnumerationIterator<T>
- Type Parameters:
T
- The element type of the enumeration and the iterator
- All Implemented Interfaces:
Iterator<T>
An
Iterator
that iterates over the elements of an Enumeration
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasNext()
next()
void
remove()
SinceEnumeration
s don't support element removal, this method always throws anUnsupportedOperationException
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
e
-
-
Constructor Details
-
EnumerationIterator
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove()SinceEnumeration
s don't support element removal, this method always throws anUnsupportedOperationException
.
-