Interface SortedSetMultimap<K extends @Nullable Object,V extends @Nullable Object>

All Superinterfaces:
Multimap<K,V>, SetMultimap<K,V>
All Known Implementing Classes:
ForwardingSortedSetMultimap, TreeMultimap

@GwtCompatible public interface SortedSetMultimap<K extends @Nullable Object,V extends @Nullable Object> extends SetMultimap<K,V>
A SetMultimap whose set of values for a given key are kept sorted; that is, they comprise a SortedSet. It cannot hold duplicate key-value pairs; adding a key-value pair that's already in the multimap has no effect. This interface does not specify the ordering of the multimap's keys. See the Multimap documentation for information common to all multimaps.

The get(K), removeAll(java.lang.Object), and replaceValues(K, java.lang.Iterable<? extends V>) methods each return a SortedSet of values, while Multimap.entries() returns a Set of map entries. Though the method signature doesn't say so explicitly, the map returned by asMap() has SortedSet values.

Warning: As in all SetMultimaps, do not modify either a key or a value of a SortedSetMultimap in a way that affects its Object.equals(java.lang.Object) behavior (or its position in the order of the values). Undefined behavior and bugs will result.

See the Guava User Guide article on Multimap.

Since:
2.0
Author:
Jared Levy