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.