E - the type of object stored inside this array listpublic class SerializableArrayList<E extends IOReadableWritable> extends ArrayList<E> implements IOReadableWritable
ArrayList by implementing the
IOReadableWritable interface. As a result, array lists of this type can be used
with Nephele's RPC system.
This class is not thread-safe.
modCount| Constructor and Description |
|---|
SerializableArrayList()
Constructs an empty list with an initial capacity of ten.
|
SerializableArrayList(int initialCapacity)
Constructs an empty list with the specified initial capacity.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
void |
read(DataInputView in) |
void |
write(DataOutputView out) |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSizehashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, hashCodepublic SerializableArrayList()
public SerializableArrayList(int initialCapacity)
initialCapacity - the initial capacity of the listpublic void write(DataOutputView out) throws IOException
write in interface IOReadableWritableIOExceptionpublic void read(DataInputView in) throws IOException
read in interface IOReadableWritableIOExceptionpublic boolean equals(Object obj)
equals in interface Collection<E extends IOReadableWritable>equals in interface List<E extends IOReadableWritable>equals in class AbstractList<E extends IOReadableWritable>Copyright © 2015 The Apache Software Foundation. All rights reserved.