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.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)
Reads the object's internal data from the given data input view.
|
void |
write(DataOutputView out)
Writes the object's internal data to the given data output view.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, hashCode
parallelStream, stream
public SerializableArrayList()
public SerializableArrayList(int initialCapacity)
initialCapacity
- the initial capacity of the listpublic void write(DataOutputView out) throws IOException
IOReadableWritable
write
in interface IOReadableWritable
out
- the output view to receive the data.IOException
- thrown if any error occurs while writing to the output streampublic void read(DataInputView in) throws IOException
IOReadableWritable
read
in interface IOReadableWritable
in
- the input view to read the data fromIOException
- thrown if any error occurs while reading from the input streampublic 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 © 2014–2017 The Apache Software Foundation. All rights reserved.