public class EnumerationIterator
extends java.lang.Object
implements java.util.Iterator
EnumerationIterator implements an Iterator that
iterates over a given Enumeration. This is usefull, when needing
an Iterator but having an Enumeration.| Constructor and Description |
|---|
EnumerationIterator(java.util.Enumeration delegatee)
Constructs an
EnuerationIterator |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
java.lang.Object |
next() |
void |
remove()
Always throws
UnsupportedOperationException. |
public EnumerationIterator(java.util.Enumeration delegatee)
EnuerationIteratordelegatee - the underlaying enumerationpublic boolean hasNext()
hasNext in interface java.util.IteratorIterator.hasNext()public java.lang.Object next()
next in interface java.util.IteratorIterator.next()public void remove()
UnsupportedOperationException.remove in interface java.util.IteratorIterator.remove()Copyright © 2010 - 2023 Adobe. All Rights Reserved