mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-30 00:02:06 +01:00
Fix MultiMap.remove()
This commit is contained in:
parent
c4aaa7ae6b
commit
5cd87bd537
1 changed files with 8 additions and 4 deletions
|
@ -79,10 +79,14 @@ public class MultiMap<K, V> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void remove(K o) {
|
public void removeAll(K o) {
|
||||||
for (Set<V> values : map.values()) {
|
map.remove(o);
|
||||||
values.remove(o);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void remove(K o, V v) {
|
||||||
|
Set<V> vs = map.get(o);
|
||||||
|
if (vs == null) return;
|
||||||
|
vs.remove(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void putAll(Map<? extends K, ? extends Set<V>> _map) {
|
public void putAll(Map<? extends K, ? extends Set<V>> _map) {
|
||||||
|
|
Loading…
Reference in a new issue