com.threerings.util
Class StreamableArrayList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<E>
com.threerings.util.StreamableArrayList<E>
- Type Parameters:
E - the type of elements stored in this list.
- All Implemented Interfaces:
- Streamable, Serializable, Cloneable, Iterable<E>, Collection<E>, List<E>, RandomAccess
@ReplacedBy(value="java.util.List")
public class StreamableArrayList<E>
- extends ArrayList<E>
- implements Streamable
An ArrayList extension that can be streamed. The contents of the list must also be of
streamable types.
- See Also:
Streamable,
Serialized Form
| Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
StreamableArrayList
public StreamableArrayList()
newList
public static <E> StreamableArrayList<E> newList()
- Creates an empty StreamableArrayList.
writeObject
public void writeObject(ObjectOutputStream out)
throws IOException
- Writes our custom streamable fields.
- Throws:
IOException
readObject
public void readObject(ObjectInputStream in)
throws IOException,
ClassNotFoundException
- Reads our custom streamable fields.
- Throws:
IOException
ClassNotFoundException