org.apache.directory.shared.ldap.message
Class IteratorNamingEnumeration<T>

java.lang.Object
  extended by org.apache.directory.shared.ldap.message.IteratorNamingEnumeration<T>
All Implemented Interfaces:
java.util.Enumeration<T>, javax.naming.NamingEnumeration<T>

public class IteratorNamingEnumeration<T>
extends java.lang.Object
implements javax.naming.NamingEnumeration<T>

A NamingEnumeration over an Iterator.

Version:
$Revision: 510365 $
Author:
Apache Directory Project

Constructor Summary
IteratorNamingEnumeration(java.util.Iterator<T> iterator)
          Creates a NamingEnumeration over an Iterator.
 
Method Summary
 void close()
           
 boolean hasMore()
           
 boolean hasMoreElements()
           
 T next()
           
 T nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IteratorNamingEnumeration

public IteratorNamingEnumeration(java.util.Iterator<T> iterator)
Creates a NamingEnumeration over an Iterator.

Parameters:
iterator - the Iterator the NamingEnumeration is based on.
Method Detail

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface java.util.Enumeration<T>
See Also:
Enumeration.hasMoreElements()

nextElement

public T nextElement()
Specified by:
nextElement in interface java.util.Enumeration<T>
See Also:
Enumeration.nextElement()

close

public void close()
Specified by:
close in interface javax.naming.NamingEnumeration<T>
See Also:
NamingEnumeration.close()

hasMore

public boolean hasMore()
Specified by:
hasMore in interface javax.naming.NamingEnumeration<T>
See Also:
NamingEnumeration.hasMore()

next

public T next()
Specified by:
next in interface javax.naming.NamingEnumeration<T>
See Also:
NamingEnumeration.next()


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.