Package akka.util
Class TypedMultiMap<T,K>
- java.lang.Object
-
- akka.util.TypedMultiMap<T,K>
-
public class TypedMultiMap<T,K> extends java.lang.Object
Return the set of keys which are mapped to non-empty value sets.
-
-
Constructor Summary
Constructors Constructor Description TypedMultiMap()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TypedMultiMap<T,K>
$plus$plus(TypedMultiMap<T,K> other)
Add all entries from the other map, overwriting existing entries.static <T,K>
TypedMultiMap<T,K>empty()
Obtain the empty map for the given key type and key–value type function.boolean
equals(java.lang.Object other)
scala.collection.immutable.Set<K>
get(T key)
Obtain all mappings for the given key.int
hashCode()
TypedMultiMap<T,K>
inserted(T key, K value)
Return a map that has the given value added to the mappings for the given key.TypedMultiMap<T,K>
keyRemoved(T key)
Return a map that has all mappings for the given key removed.scala.collection.immutable.Set<T>
keySet()
TypedMultiMap<T,K>
removed(T key, K value)
Return a map that has the given mapping from the given key removed.TypedMultiMap<T,K>
setAll(T key, scala.collection.immutable.Set<K> values)
java.lang.String
toString()
TypedMultiMap<T,K>
valueRemoved(java.lang.Object value)
Return a map that has the given value removed from all keys.
-
-
-
Method Detail
-
empty
public static <T,K> TypedMultiMap<T,K> empty()
Obtain the empty map for the given key type and key–value type function.- Returns:
- (undocumented)
-
keySet
public scala.collection.immutable.Set<T> keySet()
-
inserted
public TypedMultiMap<T,K> inserted(T key, K value)
Return a map that has the given value added to the mappings for the given key.- Parameters:
key
- (undocumented)value
- (undocumented)- Returns:
- (undocumented)
-
get
public scala.collection.immutable.Set<K> get(T key)
Obtain all mappings for the given key.- Parameters:
key
- (undocumented)- Returns:
- (undocumented)
-
valueRemoved
public TypedMultiMap<T,K> valueRemoved(java.lang.Object value)
Return a map that has the given value removed from all keys.- Parameters:
value
- (undocumented)- Returns:
- (undocumented)
-
keyRemoved
public TypedMultiMap<T,K> keyRemoved(T key)
Return a map that has all mappings for the given key removed.- Parameters:
key
- (undocumented)- Returns:
- (undocumented)
-
removed
public TypedMultiMap<T,K> removed(T key, K value)
Return a map that has the given mapping from the given key removed.- Parameters:
key
- (undocumented)value
- (undocumented)- Returns:
- (undocumented)
-
setAll
public TypedMultiMap<T,K> setAll(T key, scala.collection.immutable.Set<K> values)
-
$plus$plus
public TypedMultiMap<T,K> $plus$plus(TypedMultiMap<T,K> other)
Add all entries from the other map, overwriting existing entries.FIXME: should it merge, instead?
- Parameters:
other
- (undocumented)- Returns:
- (undocumented)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-