Collections 类

public static Map<K, V> synchronizedMap (Map<K, V> map)

Returns a wrapper on the specified map which synchronizes all access to the map.

Parameters
map the map to wrap in a synchronized map.
Returns
  • a synchronized Map.
原文地址:https://www.cnblogs.com/liu666bin/p/Collections.html