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.
posted @ 2013-01-11 09:14  nibl  阅读(99)  评论(0编辑  收藏  举报