From 14ac28c468ca81b645cabf21552748a46f7b21e2 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 10 Jun 2024 15:21:00 +0100 Subject: Update java-mammoth --- Mammoth/Couscous/java/util/AbstractMap.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Mammoth/Couscous/java/util/AbstractMap.cs') diff --git a/Mammoth/Couscous/java/util/AbstractMap.cs b/Mammoth/Couscous/java/util/AbstractMap.cs index f619267..86e4629 100644 --- a/Mammoth/Couscous/java/util/AbstractMap.cs +++ b/Mammoth/Couscous/java/util/AbstractMap.cs @@ -12,7 +12,7 @@ namespace Mammoth.Couscous.java.util { return Equals(otherMap); } } - + public bool Equals(Map other) { var first = AsUntypedDictionary(); var second = other.AsUntypedDictionary(); @@ -20,16 +20,17 @@ namespace Mammoth.Couscous.java.util { first.Count == second.Count && first.Keys.Cast().All(key => second.Contains(key) && first[key].Equals(second[key])); } - + public override int GetHashCode() { throw new System.NotSupportedException(); } - + public abstract void put(TKey key, TValue value); + public abstract void putAll(Map other); public abstract bool containsKey(TKey key); public abstract Set> entrySet(); public abstract Collection values(); - + public abstract Optional _lookup(TKey key); public abstract System.Collections.Generic.IDictionary AsDictionary(); public abstract System.Collections.IDictionary AsUntypedDictionary(); -- cgit v1.2.3