mirror of
https://bitbucket.org/projectswg/holocore.git
synced 2026-01-16 23:04:20 -05:00
Merged in M4SS/holocore/193 (pull request #669)
#193: Added proper support for SWGMap#putAll()
This commit is contained in:
@@ -93,6 +93,16 @@ public class SWGMap<K, V> extends ConcurrentHashMap<K, V> implements Encodable {
|
||||
return old;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void putAll(Map<? extends K, ? extends V> m) {
|
||||
for (Entry<? extends K, ? extends V> entry : m.entrySet()) {
|
||||
K key = entry.getKey();
|
||||
V value = entry.getValue();
|
||||
|
||||
put(key, value);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public V remove(@NotNull Object key) {
|
||||
V old = super.remove(key);
|
||||
|
||||
Reference in New Issue
Block a user