java.lang.Object | +--org.apache.commons.collections.collection.SynchronizedCollection | +--org.apache.commons.collections.set.SynchronizedSetAll Implemented Interfaces:
SynchronizedSet(Set set) Constructor that wraps (not copies). |
SynchronizedSet(Set set, Object lock) Constructor that wraps (not copies). |
static Set | decorate(Set set) Factory method to create a synchronized set. |
Set | getSet() Gets the decorated set. |
protected SynchronizedSet(Set set, Object lock)
- if set is nullprotected SynchronizedSet(Set set)
- if set is nullpublic static Set decorate(Set set)
- if set is nullprotected Set getSet()
Set
to synchronize its behaviour for a multi-threaded environment. Methods are synchronized, then forwarded to the decorated set.