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

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

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

A NamingEnumeration over an array of objects.

Version:
$Rev: 494173 $
Author:
Apache Directory Project

Constructor Summary
ArrayNamingEnumeration(T[] objects)
          Creates a NamingEnumeration over an array of objects.
 
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

ArrayNamingEnumeration

public ArrayNamingEnumeration(T[] objects)
Creates a NamingEnumeration over an array of objects.

Parameters:
objects - the objects to enumerate over
Method Detail

close

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

hasMore

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

next

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

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 © 2003-2009 Apache Software Foundation. All Rights Reserved.