Constructor and Description |
---|
CollectionMap(java.util.function.Supplier<C> collectionSupplier) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet() |
V |
get(java.lang.Object key) |
C |
getCollection(java.lang.Object key) |
V |
getOrDefault(java.lang.Object key,
V dflt) |
protected abstract V |
getSingleElementFromCollection(C collection) |
boolean |
isEmpty() |
java.util.Set<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(K key,
java.util.Collection<V> values) |
V |
remove(java.lang.Object key) |
boolean |
remove(java.lang.Object key,
java.lang.Object value) |
void |
removeAll(java.lang.Object key) |
protected abstract void |
removeSingleElementFromCollection(C collection) |
int |
size() |
java.util.Collection<V> |
values() |
public CollectionMap(java.util.function.Supplier<C> collectionSupplier)
public int size()
public boolean isEmpty()
public boolean containsKey(java.lang.Object key)
public boolean containsValue(java.lang.Object value)
public V get(java.lang.Object key)
public void clear()
public java.util.Set<K> keySet()
public java.util.Collection<V> values()
public V remove(java.lang.Object key)
public boolean remove(java.lang.Object key, java.lang.Object value)
public void removeAll(java.lang.Object key)
public C getCollection(java.lang.Object key)
protected abstract void removeSingleElementFromCollection(C collection)