org.apache.directory.shared.util
Class IteratorNamingEnumeration<T>
java.lang.Object
org.apache.directory.shared.util.IteratorNamingEnumeration<T>
- All Implemented Interfaces:
- Enumeration<T>, NamingEnumeration<T>
public class IteratorNamingEnumeration<T>
- extends Object
- implements NamingEnumeration<T>
A NamingEnumeration over an Iterator.
- Author:
- Apache Directory Project
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IteratorNamingEnumeration
public IteratorNamingEnumeration(Iterator<T> iterator)
- Creates a NamingEnumeration over an Iterator.
- Parameters:
iterator - the Iterator the NamingEnumeration is based on.
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements in interface Enumeration<T>
- See Also:
Enumeration.hasMoreElements()
nextElement
public T nextElement()
- Specified by:
nextElement in interface Enumeration<T>
- See Also:
Enumeration.nextElement()
close
public void close()
- Specified by:
close in interface NamingEnumeration<T>
- See Also:
NamingEnumeration.close()
hasMore
public boolean hasMore()
- Specified by:
hasMore in interface NamingEnumeration<T>
- See Also:
NamingEnumeration.hasMore()
next
public T next()
- Specified by:
next in interface NamingEnumeration<T>
- See Also:
NamingEnumeration.next()
Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.