org.apache.openejb.util
Class ArrayEnumeration

java.lang.Object
  extended by org.apache.openejb.util.ArrayEnumeration
All Implemented Interfaces:
Externalizable, Serializable, Enumeration

public final class ArrayEnumeration
extends Object
implements Enumeration, Externalizable

See Also:
Serialized Form

Constructor Summary
ArrayEnumeration()
           
ArrayEnumeration(List list)
           
ArrayEnumeration(Vector elements)
           
 
Method Summary
 Object get(int index)
           
 boolean hasMoreElements()
           
 Object nextElement()
           
 void readExternal(ObjectInput in)
           
 void set(int index, Object o)
           
 int size()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayEnumeration

public ArrayEnumeration(Vector elements)

ArrayEnumeration

public ArrayEnumeration(List list)

ArrayEnumeration

public ArrayEnumeration()
Method Detail

get

public Object get(int index)

set

public void set(int index,
                Object o)

size

public int size()

hasMoreElements

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

nextElement

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

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.