Serialized Form

  • Package com.github.coderodde.util

    • Class com.github.coderodde.util.IndexedLinkedList

      class IndexedLinkedList extends Object implements Serializable
      serialVersionUID:
      54170828611556733L
      • Serialization Methods

        • readObject
          private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
          Reconstitutes this LinkedList instance from a stream (that is, deserializes it).
          Serial Data:
          first, the size of the list is read. Then all the node items are read and stored in the deserialization order, that is the same order as in serialization.
          Parameters:
          s - the object input stream.
          Throws:
          IOException - if I/O fails.
          ClassNotFoundException - if the class is not found.
        • writeObject
          private void writeObject(ObjectOutputStream s) throws IOException
          Saves the state of this LinkedList instance to a stream (that is, serializes it).
          Serial Data:
          The size of the list (the number of elements it contains) is emitted (int), followed by all of its elements (each an Object) in the proper order.
          Parameters:
          s - the object output stream.
          Throws:
          IOException - if the I/O fails.
      • Serialized Fields

        • size
          int size
          The cached number of elements in this list.