org.apache.directory.shared.util
Class ArrayNamingEnumeration<T>
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArrayNamingEnumeration
public ArrayNamingEnumeration(T[] objects)
- Creates a NamingEnumeration over an array of objects.
- Parameters:
objects - the objects to enumerate over
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.