Top Description Fields Constructors Methods
org.apache.commons.collections4.list

public abstract Class AbstractSerializableListDecorator<E>

extends AbstractListDecorator<E>
Class Inheritance
Known Direct Subclasses
org.apache.commons.collections4.list.FixedSizeList, org.apache.commons.collections4.list.GrowthList, org.apache.commons.collections4.list.LazyList, org.apache.commons.collections4.list.SetUniqueList, org.apache.commons.collections4.list.UnmodifiableList
Imports
java.io.IOException, .ObjectInputStream, .ObjectOutputStream, java.util.Collection, .List

Serializable subclass of AbstractListDecorator.
Since
3.1

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
protected
AbstractSerializableListDecorator(final List<E>
the list to decorate, must not be null
list
)

Constructor that wraps (not copies).

Method Summary

Modifier and TypeMethod and Description
private void
readObject(final ObjectInputStream
the input stream
in
)

Read the list in using a custom routine.

private void
writeObject(final ObjectOutputStream
the output stream
out
)

Write the list out using a custom routine.

Inherited from org.apache.commons.collections4.list.AbstractListDecorator:
addaddAlldecoratedequalsgethashCodeindexOflastIndexOflistIteratorlistIteratorremovesetsubList

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.apache.commons.collections4.list.AbstractListDecorator.serialVersionUID.

Serialization version

Constructor Detail

AbstractSerializableListDecoratorback to summary
protected AbstractSerializableListDecorator(final List<E> list)

Constructor that wraps (not copies).

Parameters
list:List<E>

the list to decorate, must not be null

Exceptions
NullPointerException:
if list is null

Method Detail

readObjectback to summary
private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException

Read the list in using a custom routine.

Parameters
in:ObjectInputStream

the input stream

Annotations
@SuppressWarnings:unchecked
Exceptions
IOException:
if an error occurs while reading from the stream
ClassNotFoundException:
if an object read from the stream can not be loaded
writeObjectback to summary
private void writeObject(final ObjectOutputStream out) throws IOException

Write the list out using a custom routine.

Parameters
out:ObjectOutputStream

the output stream

Exceptions
IOException:
if an error occurs while writing to the stream