public final class ArrayEnumeration<T>
extends java.lang.Object
implements java.util.Enumeration<T>, java.io.Externalizable
Constructor and Description |
---|
ArrayEnumeration() |
ArrayEnumeration(java.util.List<T> list) |
ArrayEnumeration(java.util.Set<T> set) |
ArrayEnumeration(java.util.Vector<T> elements) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(int index) |
boolean |
hasMoreElements() |
T |
nextElement() |
void |
readExternal(java.io.ObjectInput in) |
void |
set(int index,
T o) |
int |
size() |
void |
writeExternal(java.io.ObjectOutput out) |
public ArrayEnumeration(java.util.Vector<T> elements)
public ArrayEnumeration(java.util.List<T> list)
public ArrayEnumeration(java.util.Set<T> set)
public ArrayEnumeration()
public java.lang.Object get(int index)
public void set(int index, T o)
public int size()
public boolean hasMoreElements()
hasMoreElements
in interface java.util.Enumeration<T>
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException