com.threerings.util
Class StreamableArrayList<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<E>
              extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
Streamable.Closure
 
Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
StreamableArrayList()
           
 
Method Summary
static
<E> StreamableArrayList<E>
newList()
          Creates an empty StreamableArrayList.
 void readObject(ObjectInputStream in)
          Reads our custom streamable fields.
 void writeObject(ObjectOutputStream out)
          Writes our custom streamable fields.
 
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
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

StreamableArrayList

public StreamableArrayList()
Method Detail

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