Package hiiragi283.lib.collection
Class AbstractMutableMultiMap
-
- All Implemented Interfaces:
-
hiiragi283.lib.collection.MultiMap,hiiragi283.lib.collection.MutableMultiMap
public abstract class AbstractMutableMultiMap<K extends Object, V extends Object, C extends Collection<V>> implements MutableMultiMap<K, V>
-
-
Constructor Summary
Constructors Constructor Description AbstractMutableMultiMap(Map<K, C> map)
-
Method Summary
Modifier and Type Method Description IntegergetSize()Set<K>getKeys()Collection<V>getValues()Set<Pair<K, V>>getEntries()BooleanisEmpty()BooleancontainsKey(K key)BooleancontainsValue(V value)Collection<V>get(K key)Booleanput(K key, V value)BooleanputAll(K key, Iterable<V> values)CremoveAll(K key)Unitclear()Map<K, C>asMap()-
-
Method Detail
-
getValues
Collection<V> getValues()
-
getEntries
Set<Pair<K, V>> getEntries()
-
containsKey
Boolean containsKey(K key)
-
containsValue
Boolean containsValue(V value)
-
get
Collection<V> get(K key)
-
-
-
-