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 long
serialVersionUID
-
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()
E
first()
java.util.SortedSet<E>
headSet(E toElement)
E
last()
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, @CheckForNull java.lang.Object mutex)
-
-
Method Detail
-
delegate
java.util.SortedSet<E> delegate()
- Overrides:
delegate
in classSynchronized.SynchronizedSet<E>
-
comparator
@CheckForNull public java.util.Comparator<? super E> comparator()
- Specified by:
comparator
in interfacejava.util.SortedSet<E>
-
subSet
public java.util.SortedSet<E> subSet(E fromElement, E toElement)
- Specified by:
subSet
in interfacejava.util.SortedSet<E>
-
headSet
public java.util.SortedSet<E> headSet(E toElement)
- Specified by:
headSet
in interfacejava.util.SortedSet<E>
-
tailSet
public java.util.SortedSet<E> tailSet(E fromElement)
- Specified by:
tailSet
in interfacejava.util.SortedSet<E>
-
-