public class IteratorEnumeration extends Object implements Enumeration
IteratorEnumeration provides a one-to-one mapping
from the pre Java 2 Enumeration to the Java 2
Iterator| Constructor and Description |
|---|
IteratorEnumeration(Iterator iter)
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasMoreElements()
Tests if this enumeration contains more elements.
|
Object |
nextElement()
Returns the next element of this enumeration if this enumeration
object has at least one more element to provide.
|
public IteratorEnumeration(Iterator iter)
public boolean hasMoreElements()
hasMoreElements in interface Enumerationtrue if and only if this enumeration object
contains at least one more element to provide;
false otherwise.public Object nextElement()
nextElement in interface EnumerationNoSuchElementException - if no more elements exist.Copyright © 2010 - 2020 Adobe. All Rights Reserved