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;
  }
}

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 ; } }
reconstitutes this queue from a stream ( that is , deserializes it ) .
