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

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

public class ArrayNamingEnumeration<T>
extends Object
implements NamingEnumeration<T>

A NamingEnumeration over an array of objects.

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 NamingEnumeration<T>

hasMore

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

next

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

hasMoreElements

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

nextElement

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


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.