From db562602bf34f206e6fea34a17aa6d7961456653 Mon Sep 17 00:00:00 2001 From: Ziggy Date: Sun, 13 Oct 2019 13:27:53 +0200 Subject: [PATCH] 193: Added proper support for SWGMap#putAll() --- .../resources/support/data/collections/SWGMap.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/com/projectswg/holocore/resources/support/data/collections/SWGMap.java b/src/main/java/com/projectswg/holocore/resources/support/data/collections/SWGMap.java index 21cbc83ff..0ffbf1436 100644 --- a/src/main/java/com/projectswg/holocore/resources/support/data/collections/SWGMap.java +++ b/src/main/java/com/projectswg/holocore/resources/support/data/collections/SWGMap.java @@ -93,6 +93,16 @@ public class SWGMap extends ConcurrentHashMap implements Encodable { return old; } + @Override + public void putAll(Map m) { + for (Entry 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);