public final class ImmutableSortedSetMultimapImpl<K,V> extends AbstractImmutableMultimap<K,V,ImmutableSortedSet<V>> implements ImmutableSortedSetMultimap<K,V>, Serializable
Constructor and Description |
---|
ImmutableSortedSetMultimapImpl(ImmutableMap<K,ImmutableSortedSet<V>> map,
Comparator<? super V> comparator) |
ImmutableSortedSetMultimapImpl(MutableMap<K,ImmutableSortedSet<V>> map,
Comparator<? super V> comparator) |
Modifier and Type | Method and Description |
---|---|
Comparator<? super V> |
comparator() |
ImmutableSortedSetMultimap<K,V> |
newEmpty()
Creates a new instance of the same implementation type, using the default capacity and growth parameters.
|
ImmutableSortedSetMultimap<K,V> |
newWith(K key,
V value) |
ImmutableSortedSetMultimap<K,V> |
newWithAll(K key,
Iterable<? extends V> values) |
ImmutableSortedSetMultimap<K,V> |
newWithout(Object key,
Object value) |
ImmutableSortedSetMultimap<K,V> |
newWithoutAll(Object key) |
ImmutableSortedSetMultimap<K,V> |
toImmutable()
Returns an immutable copy of this Multimap if it is not already immutable.
|
MutableSortedSetMultimap<K,V> |
toMutable()
Returns a mutable copy of this Multimap.
|
get, isEmpty, size, sizeDistinct, toMap
containsKey, containsKeyAndValue, containsValue, equals, forEachKey, forEachKeyValue, forEachValue, hashCode, keyBag, keyMultiValuePairsView, keysView, keyValuePairsView, multiValuesView, notEmpty, toMap, toString, valuesView
get
containsKey, containsKeyAndValue, containsValue, equals, forEachKey, forEachKeyValue, forEachValue, hashCode, isEmpty, keyBag, keyMultiValuePairsView, keysView, keyValuePairsView, multiValuesView, notEmpty, size, sizeDistinct, toMap, toMap, valuesView
public ImmutableSortedSetMultimapImpl(MutableMap<K,ImmutableSortedSet<V>> map, Comparator<? super V> comparator)
public ImmutableSortedSetMultimapImpl(ImmutableMap<K,ImmutableSortedSet<V>> map, Comparator<? super V> comparator)
public ImmutableSortedSetMultimap<K,V> newEmpty()
Multimap
newEmpty
in interface ImmutableMultimap<K,V>
newEmpty
in interface Multimap<K,V>
newEmpty
in interface SortedIterableMultimap<K,V>
newEmpty
in interface SetMultimap<K,V>
newEmpty
in interface ImmutableSortedSetMultimap<K,V>
newEmpty
in interface SortedSetMultimap<K,V>
public Comparator<? super V> comparator()
comparator
in interface SortedIterableMultimap<K,V>
public MutableSortedSetMultimap<K,V> toMutable()
Multimap
public ImmutableSortedSetMultimap<K,V> toImmutable()
Multimap
Serializable
if this Multimap is Serializable
.toImmutable
in interface Multimap<K,V>
toImmutable
in interface SortedSetMultimap<K,V>
toImmutable
in class AbstractImmutableMultimap<K,V,ImmutableSortedSet<V>>
public ImmutableSortedSetMultimap<K,V> newWith(K key, V value)
newWith
in interface ImmutableMultimap<K,V>
newWith
in interface ImmutableSortedSetMultimap<K,V>
newWith
in class AbstractImmutableMultimap<K,V,ImmutableSortedSet<V>>
public ImmutableSortedSetMultimap<K,V> newWithout(Object key, Object value)
newWithout
in interface ImmutableMultimap<K,V>
newWithout
in interface ImmutableSortedSetMultimap<K,V>
newWithout
in class AbstractImmutableMultimap<K,V,ImmutableSortedSet<V>>
public ImmutableSortedSetMultimap<K,V> newWithAll(K key, Iterable<? extends V> values)
newWithAll
in interface ImmutableMultimap<K,V>
newWithAll
in interface ImmutableSortedSetMultimap<K,V>
newWithAll
in class AbstractImmutableMultimap<K,V,ImmutableSortedSet<V>>
public ImmutableSortedSetMultimap<K,V> newWithoutAll(Object key)
newWithoutAll
in interface ImmutableMultimap<K,V>
newWithoutAll
in interface ImmutableSortedSetMultimap<K,V>
newWithoutAll
in class AbstractImmutableMultimap<K,V,ImmutableSortedSet<V>>
Copyright © 2004–2019. All rights reserved.