1394 |
|
} |
1395 |
|
|
1396 |
|
/** |
1397 |
< |
* Save the state of the {@code HashMap} instance to a stream (i.e., |
1398 |
< |
* serialize it). |
1397 |
> |
* Saves this map to a stream (that is, serializes it). |
1398 |
|
* |
1399 |
+ |
* @param s the stream |
1400 |
+ |
* @throws IOException if an I/O error occurs |
1401 |
|
* @serialData The <i>capacity</i> of the HashMap (the length of the |
1402 |
|
* bucket array) is emitted (int), followed by the |
1403 |
|
* <i>size</i> (an int, the number of key-value |
1416 |
|
} |
1417 |
|
|
1418 |
|
/** |
1419 |
< |
* Reconstitute the {@code HashMap} instance from a stream (i.e., |
1420 |
< |
* deserialize it). |
1419 |
> |
* Reconstitutes this map from a stream (that is, deserializes it). |
1420 |
> |
* @param s the stream |
1421 |
> |
* @throws ClassNotFoundException if the class of a serialized object |
1422 |
> |
* could not be found |
1423 |
> |
* @throws IOException if an I/O error occurs |
1424 |
|
*/ |
1425 |
|
private void readObject(java.io.ObjectInputStream s) |
1426 |
|
throws IOException, ClassNotFoundException { |