java.lang.Object | +--org.apache.commons.collections.collection.SynchronizedCollection | +--org.apache.commons.collections.set.SynchronizedSortedSetAll Implemented Interfaces:
SynchronizedSortedSet(SortedSet set) Constructor that wraps (not copies). |
SynchronizedSortedSet(SortedSet set, Object lock) Constructor that wraps (not copies). |
Comparator | |
static SortedSet | decorate(SortedSet set) Factory method to create a synchronized set. |
Object | first() |
SortedSet | Gets the decorated set. |
SortedSet | headSet(Object toElement) |
Object | last() |
SortedSet | subSet(Object fromElement, Object toElement) |
SortedSet | tailSet(Object fromElement) |
protected SynchronizedSortedSet(SortedSet set, Object lock)
- if set is nullprotected SynchronizedSortedSet(SortedSet set)
- if set is nullpublic Comparator comparator()
public static SortedSet decorate(SortedSet set)
- if set is nullpublic Object first()
protected SortedSet getSortedSet()
public SortedSet headSet(Object toElement)
public Object last()
public SortedSet subSet(Object fromElement, Object toElement)
public SortedSet tailSet(Object fromElement)
SortedSetto synchronize its behaviour for a multi-threaded environment. Methods are synchronized, then forwarded to the decorated set.