public class IteratorNamingEnumeration<T> extends Object implements NamingEnumeration<T>
Constructor and Description |
---|
IteratorNamingEnumeration(Iterator<T> iterator)
Creates a NamingEnumeration over an Iterator.
|
public IteratorNamingEnumeration(Iterator<T> iterator)
iterator
- the Iterator the NamingEnumeration is based on.public boolean hasMoreElements()
hasMoreElements
in interface Enumeration<T>
Enumeration.hasMoreElements()
public T nextElement()
nextElement
in interface Enumeration<T>
Enumeration.nextElement()
public void close()
close
in interface NamingEnumeration<T>
NamingEnumeration.close()
public boolean hasMore()
hasMore
in interface NamingEnumeration<T>
NamingEnumeration.hasMore()
public T next()
next
in interface NamingEnumeration<T>
NamingEnumeration.next()
Copyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.