Package com.google.common.collect
Class AbstractMapBasedMultimap.WrappedSortedSet
- java.lang.Object
-
- java.util.AbstractCollection<V>
-
- com.google.common.collect.AbstractMapBasedMultimap.WrappedCollection
-
- com.google.common.collect.AbstractMapBasedMultimap.WrappedSortedSet
-
- All Implemented Interfaces:
java.lang.Iterable<V>
,java.util.Collection<V>
,java.util.Set<V>
,java.util.SortedSet<V>
- Direct Known Subclasses:
AbstractMapBasedMultimap.WrappedNavigableSet
- Enclosing class:
- AbstractMapBasedMultimap<K,V>
class AbstractMapBasedMultimap.WrappedSortedSet extends AbstractMapBasedMultimap.WrappedCollection implements java.util.SortedSet<V>
SortedSet decorator that stays in sync with the multimap values for a key.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.common.collect.AbstractMapBasedMultimap.WrappedCollection
AbstractMapBasedMultimap.WrappedCollection.WrappedIterator
-
-
Field Summary
-
Fields inherited from class com.google.common.collect.AbstractMapBasedMultimap.WrappedCollection
ancestor, ancestorDelegate, delegate, key
-
-
Constructor Summary
Constructors Constructor Description WrappedSortedSet(K key, java.util.SortedSet<V> delegate, AbstractMapBasedMultimap.WrappedCollection ancestor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Comparator<? super V>
comparator()
V
first()
(package private) java.util.SortedSet<V>
getSortedSetDelegate()
java.util.SortedSet<V>
headSet(V toElement)
V
last()
java.util.SortedSet<V>
subSet(V fromElement, V toElement)
java.util.SortedSet<V>
tailSet(V fromElement)
-
Methods inherited from class com.google.common.collect.AbstractMapBasedMultimap.WrappedCollection
add, addAll, addToMap, clear, contains, containsAll, equals, getAncestor, getDelegate, getKey, hashCode, iterator, refreshIfEmpty, remove, removeAll, removeIfEmpty, retainAll, size, spliterator, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
WrappedSortedSet
WrappedSortedSet(K key, java.util.SortedSet<V> delegate, AbstractMapBasedMultimap.WrappedCollection ancestor)
-
-
Method Detail
-
getSortedSetDelegate
java.util.SortedSet<V> getSortedSetDelegate()
-
comparator
public java.util.Comparator<? super V> comparator()
- Specified by:
comparator
in interfacejava.util.SortedSet<V>
-
headSet
public java.util.SortedSet<V> headSet(V toElement)
- Specified by:
headSet
in interfacejava.util.SortedSet<V>
-
subSet
public java.util.SortedSet<V> subSet(V fromElement, V toElement)
- Specified by:
subSet
in interfacejava.util.SortedSet<V>
-
-