org.apache.directory.shared.ldap.util
Class ArrayEnumeration

java.lang.Object
  extended by org.apache.directory.shared.ldap.util.ArrayEnumeration
All Implemented Interfaces:
Enumeration

public class ArrayEnumeration
extends Object
implements Enumeration

An enumeration wrapper around an array.

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

Constructor Summary
ArrayEnumeration(Object[] array)
          Constructs an enumeration by wrapping an array.
 
Method Summary
 boolean hasMoreElements()
           
 Object nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayEnumeration

public ArrayEnumeration(Object[] array)
Constructs an enumeration by wrapping an array.

Parameters:
array - the underlying array that is wrapped
Method Detail

hasMoreElements

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

nextElement

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


Copyright © 2004-2012. All Rights Reserved.