T - The enumerated type.public class IteratorEnumeration<T> extends Object implements Enumeration<T>
Enumeration implementation, that wraps an Iterator. Can
be used to integrate older APIs working with enumerations with iterators.| Constructor and Description |
|---|
IteratorEnumeration(Iterator<T> source)
Creates a new IterationEnumeration.
|
public boolean hasMoreElements()
hasMoreElements in interface Enumeration<T>public T nextElement()
nextElement in interface Enumeration<T>Copyright © 2012 JBoss by Red Hat. All Rights Reserved.