code: private void readObject(java.io.ObjectInputStream s)
          throws java.io.IOException, ClassNotFoundException {
          try {
              s.defaultReadObject();
              this.queue = new Object[q.size()];
              comparator = q.comparator();
              addAll(q);
          } finally {
              q = null;
          }
      }
docs: Reconstitutes this queue from a stream (that is, deserializes it).
  @param s the stream
  @throws ClassNotFoundException if the class of a serialized object
  could not be found
  @throws java.io.IOException if an I/O error occurs