@Throws(IOException::class, ClassNotFoundException::class) private fun readObject(s: ObjectInputStream) { try { s.defaultReadObject() this.queue = arrayOfNulls<Any>(q.size()) comparator = q.comparator() addAll(q) } finally { q = null } }
Reconstitutes this queue from a stream ( that is , deserializes it ) .