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)
EnuerationIterator
delegatee
- the underlaying enumerationpublic boolean hasNext()
hasNext
in interface java.util.Iterator
Iterator.hasNext()
public java.lang.Object next()
next
in interface java.util.Iterator
Iterator.next()
public void remove()
UnsupportedOperationException
.remove
in interface java.util.Iterator
Iterator.remove()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"