mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-29 15:52:08 +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) {
|
||||
for (Set<V> values : map.values()) {
|
||||
values.remove(o);
|
||||
}
|
||||
public void removeAll(K o) {
|
||||
map.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) {
|
||||
|
|
Loading…
Reference in a new issue