5 |
|
*/ |
6 |
|
|
7 |
|
package java.util.concurrent; |
8 |
< |
import java.util.concurrent.locks.*; |
8 |
> |
import java.util.concurrent.locks.ReentrantLock; |
9 |
|
import java.util.*; |
10 |
|
import java.io.Serializable; |
11 |
|
|
1389 |
|
/* ---------------- Serialization Support -------------- */ |
1390 |
|
|
1391 |
|
/** |
1392 |
< |
* Saves the state of the <tt>ConcurrentHashMap</tt> instance to a |
1393 |
< |
* stream (i.e., serializes it). |
1394 |
< |
* @param s the stream |
1392 |
> |
* Saves this map to a stream (that is, serializes it). |
1393 |
> |
* |
1394 |
|
* @serialData |
1395 |
|
* the key (Object) and value (Object) |
1396 |
|
* for each key-value mapping, followed by a null pair. |
1425 |
|
} |
1426 |
|
|
1427 |
|
/** |
1428 |
< |
* Reconstitutes the <tt>ConcurrentHashMap</tt> instance from a |
1430 |
< |
* stream (i.e., deserializes it). |
1431 |
< |
* @param s the stream |
1428 |
> |
* Reconstitutes this map from a stream (that is, deserializes it). |
1429 |
|
*/ |
1430 |
|
@SuppressWarnings("unchecked") |
1431 |
|
private void readObject(java.io.ObjectInputStream s) |