org.apache.directory.shared.ldap.message
Class ArrayNamingEnumeration

java.lang.Object
  extended by org.apache.directory.shared.ldap.message.ArrayNamingEnumeration
All Implemented Interfaces:
Enumeration, NamingEnumeration

public class ArrayNamingEnumeration
extends Object
implements NamingEnumeration

A NamingEnumeration over an array of objects.

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

Constructor Summary
ArrayNamingEnumeration(Object[] objects)
          Creates a NamingEnumeration over an array of objects.
 
Method Summary
 void close()
           
 boolean hasMore()
           
 boolean hasMoreElements()
           
 Object next()
           
 Object nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayNamingEnumeration

public ArrayNamingEnumeration(Object[] 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

hasMore

public boolean hasMore()
Specified by:
hasMore in interface NamingEnumeration

next

public Object next()
Specified by:
next in interface NamingEnumeration

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface Enumeration

nextElement

public Object nextElement()
Specified by:
nextElement in interface Enumeration


Copyright © 2004-2012. All Rights Reserved.