java.lang.Object
com.intellij.util.containers.MultiMap<K,V>
- All Implemented Interfaces:
Serializable
Pass custom map using
MultiMap(Map) if needed.- See Also:
-
BidirectionalMultiMap- Serialized Form
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidclear()final booleancontainsKey(K key) final booleancontainsScalarValue(V value) copy()static <K,V> @NotNull MultiMap<K, V> create()static <K,V> MultiMap<K, V> create(int initialCapacity, float loadFactor) protected @NotNull Collection<V>static <K,V> @NotNull MultiMap<K, V> static <K,V> @NotNull MultiMap<K, V> protected @NotNull Collection<V>static <K,V> @NotNull MultiMap<K, V> static <K,V> @NotNull MultiMap<K, V> static <K,V> @NotNull MultiMap<K, V> protected @NotNull Map<K,Collection<V>> Deprecated.Pass map to constructor.static <K,V> @NotNull MultiMap<K, V> Deprecated.UseMultiMap().static <K,V> @NotNull MultiMap<K, V> empty()static <K,V> @NotNull MultiMap<K, V> Deprecated.Useempty()final @NotNull Set<Map.Entry<K,Collection<V>>> entrySet()final booleanfinal @NotNull Map<K,Collection<V>> Prohibits modification of collections for existing keys and returns view of this as a map.final @NotNull Collection<V>final @NotNull Collection<V>getModifiable(K key) final inthashCode()final booleanisEmpty()keySet()final voidput(K key, Collection<V> values) final voidputAllValues(@NotNull MultiMap<? extends K, ? extends V> from) final voidputAllValues(@NotNull Map<? extends K, ? extends V> from) final voidfinal voidputValues(K key, @NotNull Collection<? extends V> values) final @Nullable Collection<V>booleanfinal voidremoveValue(K key, V value) Deprecated.useremove(Object, Object)insteadfinal intsize()final @NotNull Map<K,Collection<V>> final StringtoString()final @NotNull Collection<V>values()
-
Field Details
-
EMPTY
Deprecated.Useempty() -
myMap
-
-
Constructor Details
-
MultiMap
public MultiMap() -
MultiMap
-
MultiMap
public MultiMap(int expectedSize) -
MultiMap
-
MultiMap
public MultiMap(int initialCapacity, float loadFactor)
-
-
Method Details
-
copy
-
createMap
Deprecated.Pass map to constructor. -
createCollection
-
createEmptyCollection
-
putAllValues
-
toHashMap
-
putAllValues
-
putValues
-
putValue
-
entrySet
-
freezeValues
Prohibits modification of collections for existing keys and returns view of this as a map. -
isEmpty
public final boolean isEmpty() -
containsKey
-
containsScalarValue
-
get
-
getModifiable
-
keySet
-
size
public final int size() -
put
-
removeValue
Deprecated.useremove(Object, Object)instead -
remove
-
values
-
clear
public final void clear() -
remove
-
emptyInstance
Deprecated.Useempty() -
create
-
createIdentity
-
createLinked
-
createLinkedSet
-
createSmart
Deprecated.UseMultiMap(). -
createConcurrent
-
createConcurrentSet
-
create
-
equals
-
hashCode
public final int hashCode() -
toString
-
empty
-
empty()