Package com.google.common.collect
Class Synchronized.SynchronizedSortedSet<E>
- java.lang.Object
-
- com.google.common.collect.Synchronized.SynchronizedObject
-
- com.google.common.collect.Synchronized.SynchronizedCollection<E>
-
- com.google.common.collect.Synchronized.SynchronizedSet<E>
-
- com.google.common.collect.Synchronized.SynchronizedSortedSet<E>
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Iterable<E>,java.util.Collection<E>,java.util.Set<E>,java.util.SortedSet<E>
- Direct Known Subclasses:
Synchronized.SynchronizedNavigableSet
- Enclosing class:
- Synchronized
static class Synchronized.SynchronizedSortedSet<E> extends Synchronized.SynchronizedSet<E> implements java.util.SortedSet<E>
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUID-
Fields inherited from class com.google.common.collect.Synchronized.SynchronizedObject
delegate, mutex
-
-
Constructor Summary
Constructors Constructor Description SynchronizedSortedSet(java.util.SortedSet<E> delegate, java.lang.Object mutex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Comparator<? super E>comparator()(package private) java.util.SortedSet<E>delegate()Efirst()java.util.SortedSet<E>headSet(E toElement)Elast()java.util.SortedSet<E>subSet(E fromElement, E toElement)java.util.SortedSet<E>tailSet(E fromElement)-
Methods inherited from class com.google.common.collect.Synchronized.SynchronizedSet
equals, hashCode
-
Methods inherited from class com.google.common.collect.Synchronized.SynchronizedCollection
add, addAll, clear, contains, containsAll, forEach, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray
-
Methods inherited from class com.google.common.collect.Synchronized.SynchronizedObject
toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SynchronizedSortedSet
SynchronizedSortedSet(java.util.SortedSet<E> delegate, java.lang.Object mutex)
-
-
Method Detail
-
delegate
java.util.SortedSet<E> delegate()
- Overrides:
delegatein classSynchronized.SynchronizedSet<E>
-
comparator
public java.util.Comparator<? super E> comparator()
- Specified by:
comparatorin interfacejava.util.SortedSet<E>
-
subSet
public java.util.SortedSet<E> subSet(E fromElement, E toElement)
- Specified by:
subSetin interfacejava.util.SortedSet<E>
-
headSet
public java.util.SortedSet<E> headSet(E toElement)
- Specified by:
headSetin interfacejava.util.SortedSet<E>
-
tailSet
public java.util.SortedSet<E> tailSet(E fromElement)
- Specified by:
tailSetin interfacejava.util.SortedSet<E>
-
-