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

public abstract Class AbstractSerializableSetDecorator<E>

extends AbstractSetDecorator<E>
Class Inheritance
Known Direct Subclasses
org.apache.commons.collections4.set.ListOrderedSet, org.apache.commons.collections4.set.UnmodifiableSet
Type Parameters
<E>
the type of the elements in this set
Imports
java.io.IOException, .ObjectInputStream, .ObjectOutputStream, java.util.Collection, .Set

Serializable subclass of AbstractSetDecorator.
Since
3.1

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
protected
AbstractSerializableSetDecorator(final Set<E>
the list to decorate, must not be null
set
)

Constructor.

Method Summary

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

Read the set in using a custom routine.

private void
writeObject(final ObjectOutputStream
the output stream
out
)

Write the set out using a custom routine.

Inherited from org.apache.commons.collections4.set.AbstractSetDecorator:
decoratedequalshashCode

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.apache.commons.collections4.set.AbstractSetDecorator.serialVersionUID.

Serialization version

Constructor Detail

AbstractSerializableSetDecoratorback to summary
protected AbstractSerializableSetDecorator(final Set<E> set)

Constructor.

Parameters
set:Set<E>

the list to decorate, must not be null

Exceptions
NullPointerException:
if set is null

Method Detail

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

Read the set 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 set out using a custom routine.

Parameters
out:ObjectOutputStream

the output stream

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