Class AbstractSerializableSetDecorator

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable, java.util.Collection, java.util.Set
    Direct Known Subclasses:
    ListOrderedSet, UnmodifiableSet

    public abstract class AbstractSerializableSetDecorator
    extends AbstractSetDecorator
    implements java.io.Serializable
    Serializable subclass of AbstractSetDecorator.
    Since:
    Commons Collections 3.1
    See Also:
    Serialized Form
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        Serialization version
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractSerializableSetDecorator

        protected AbstractSerializableSetDecorator​(java.util.Set set)
        Constructor.
    • Method Detail

      • writeObject

        private void writeObject​(java.io.ObjectOutputStream out)
                          throws java.io.IOException
        Write the set out using a custom routine.
        Parameters:
        out - the output stream
        Throws:
        java.io.IOException
      • readObject

        private void readObject​(java.io.ObjectInputStream in)
                         throws java.io.IOException,
                                java.lang.ClassNotFoundException
        Read the set in using a custom routine.
        Parameters:
        in - the input stream
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException