org.apache.naming
Class NamingEnumerationImpl<T>

java.lang.Object
  extended by org.apache.naming.NamingEnumerationImpl<T>
All Implemented Interfaces:
java.util.Enumeration<T>, javax.naming.NamingEnumeration<T>

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

Naming enumeration implementation.

Version:
$Revision: 515 $ $Date: 2008-03-17 22:02:23 +0100 (Mon, 17 Mar 2008) $
Author:
Remy Maucherat

Field Summary
protected  java.util.Iterator<T> iterator
          Underlying collection.
 
Constructor Summary
NamingEnumerationImpl(java.util.Collection<T> entries)
           
 
Method Summary
 void close()
          Closes this enumeration.
 boolean hasMore()
          Determines whether there are any more elements in the enumeration.
 boolean hasMoreElements()
           
 T next()
          Retrieves the next element in the enumeration.
 T nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iterator

protected java.util.Iterator<T> iterator
Underlying collection.

Constructor Detail

NamingEnumerationImpl

public NamingEnumerationImpl(java.util.Collection<T> entries)
Method Detail

next

public T next()
       throws javax.naming.NamingException
Retrieves the next element in the enumeration.

Specified by:
next in interface javax.naming.NamingEnumeration<T>
Throws:
javax.naming.NamingException

hasMore

public boolean hasMore()
                throws javax.naming.NamingException
Determines whether there are any more elements in the enumeration.

Specified by:
hasMore in interface javax.naming.NamingEnumeration<T>
Throws:
javax.naming.NamingException

close

public void close()
           throws javax.naming.NamingException
Closes this enumeration.

Specified by:
close in interface javax.naming.NamingEnumeration<T>
Throws:
javax.naming.NamingException

hasMoreElements

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

nextElement

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


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