Class AbstractSerializableListDecorator<E>
java.lang.Object
org.apache.commons.collections4.collection.AbstractCollectionDecorator<E>
org.apache.commons.collections4.list.AbstractListDecorator<E>
org.apache.commons.collections4.list.AbstractSerializableListDecorator<E>
- All Implemented Interfaces:
Serializable, Iterable<E>, Collection<E>, List<E>
- Direct Known Subclasses:
FixedSizeList, GrowthList, LazyList, SetUniqueList, UnmodifiableList
Serializable subclass of AbstractListDecorator.
- Since:
- 3.1
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longSerialization version -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor that wraps (not copies). -
Method Summary
Modifier and TypeMethodDescriptionprivate voidRead the list in using a custom routine.private voidWrite the list out using a custom routine.Methods inherited from class AbstractListDecorator
add, addAll, decorated, equals, get, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, set, subListMethods inherited from class AbstractCollectionDecorator
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, removeIf, retainAll, setCollection, size, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version- See Also:
-
-
Constructor Details
-
AbstractSerializableListDecorator
Constructor that wraps (not copies).- Parameters:
list- the list to decorate, must not be null- Throws:
NullPointerException- if list is null
-
-
Method Details
-
writeObject
Write the list out using a custom routine.- Parameters:
out- the output stream- Throws:
IOException- if an error occurs while writing to the stream
-
readObject
Read the list in using a custom routine.- Parameters:
in- the input stream- Throws:
IOException- if an error occurs while reading from the streamClassNotFoundException- if an object read from the stream can not be loaded
-