public Object first() { synchronized (lock) { return getSortedSet().first(); } }
public Object last() { synchronized (lock) { return getSortedSet().last(); } }
public Comparator comparator() { synchronized (lock) { return getSortedSet().comparator(); } }
public Object first() { synchronized (lock) { return getSortedSet().first(); } }
public Object last() { synchronized (lock) { return getSortedSet().last(); } }
public Comparator comparator() { synchronized (lock) { return getSortedSet().comparator(); } }
public SortedSet tailSet(Object fromElement) { synchronized (lock) { SortedSet set = getSortedSet().tailSet(fromElement); // the lock is passed into the constructor here to ensure that the // tailset is synchronized on the same lock as the parent return new SynchronizedSortedSet(set, lock); } }
public SortedSet headSet(Object toElement) { synchronized (lock) { SortedSet set = getSortedSet().headSet(toElement); // the lock is passed into the constructor here to ensure that the // headset is synchronized on the same lock as the parent return new SynchronizedSortedSet(set, lock); } }
public SortedSet headSet(Object toElement) { synchronized (lock) { SortedSet set = getSortedSet().headSet(toElement); // the lock is passed into the constructor here to ensure that the // headset is synchronized on the same lock as the parent return new SynchronizedSortedSet(set, lock); } }
public SortedSet tailSet(Object fromElement) { synchronized (lock) { SortedSet set = getSortedSet().tailSet(fromElement); // the lock is passed into the constructor here to ensure that the // tailset is synchronized on the same lock as the parent return new SynchronizedSortedSet(set, lock); } }
public SortedSet subSet(Object fromElement, Object toElement) { synchronized (lock) { SortedSet set = getSortedSet().subSet(fromElement, toElement); // the lock is passed into the constructor here to ensure that the // subset is synchronized on the same lock as the parent return new SynchronizedSortedSet(set, lock); } }
public SortedSet subSet(Object fromElement, Object toElement) { synchronized (lock) { SortedSet set = getSortedSet().subSet(fromElement, toElement); // the lock is passed into the constructor here to ensure that the // subset is synchronized on the same lock as the parent return new SynchronizedSortedSet(set, lock); } }
public Comparator comparator() { synchronized (lock) { return getSortedSet().comparator(); } }
public Object first() { synchronized (lock) { return getSortedSet().first(); } }
public Object last() { synchronized (lock) { return getSortedSet().last(); } }
public Comparator comparator() { synchronized (lock) { return getSortedSet().comparator(); } }
public Object first() { synchronized (lock) { return getSortedSet().first(); } }
public SortedSet tailSet(Object fromElement) { synchronized (lock) { SortedSet set = getSortedSet().tailSet(fromElement); // the lock is passed into the constructor here to ensure that the // tailset is synchronized on the same lock as the parent return new SynchronizedSortedSet(set, lock); } }
public SortedSet headSet(Object toElement) { synchronized (lock) { SortedSet set = getSortedSet().headSet(toElement); // the lock is passed into the constructor here to ensure that the // headset is synchronized on the same lock as the parent return new SynchronizedSortedSet(set, lock); } }
public SortedSet headSet(Object toElement) { synchronized (lock) { SortedSet set = getSortedSet().headSet(toElement); // the lock is passed into the constructor here to ensure that the // headset is synchronized on the same lock as the parent return new SynchronizedSortedSet(set, lock); } }