org.apache.directory.shared.util
Class IteratorNamingEnumeration<T>

java.lang.Object
  extended by 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

Constructor Summary
IteratorNamingEnumeration(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(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 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.