SynchronizedMap
A thread-safe implementation of a mutable map. This class provides synchronization to ensure that all operations on the map are thread-safe.
This class uses an internal lock (SynchronizedObject
) to synchronize access to the underlying mutable map (delegate
). All methods are synchronized to prevent concurrent modification issues.
Parameters
K
The type of keys maintained by the map.
V
The type of values associated with the keys.
Properties
Link copied to clipboard
Returns a set of key-value pairs contained in the map. This operation is synchronized.
Link copied to clipboard
Returns a set of keys contained in the map. This operation is synchronized.
Link copied to clipboard
Returns a collection of values contained in the map. This operation is synchronized.