SynchronizedSet
A thread-safe implementation of a mutable set. This class provides synchronization to ensure that all operations on the set are thread-safe.
This class uses an internal lock (SynchronizedObject
) to synchronize access to the underlying mutable set (delegate
). All methods are synchronized to prevent concurrent modification issues.
Parameters
The type of elements contained in the set.
Properties
Functions
Adds all elements in the specified collection to the set. This operation is synchronized.
Returns true
if the set contains all elements in the specified collection. This operation is synchronized.
Creates a shallow copy of the current SynchronizedSet
.
Returns an iterator over the elements in the set. This operation is synchronized.
Removes all elements in the specified collection from the set. This operation is synchronized.
Retains only the elements in the set that are contained in the specified collection. This operation is synchronized.