diff options
| author | Michael Williamson <mike@zwobble.org> | 2024-06-10 15:21:00 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2024-06-10 15:21:00 +0100 |
| commit | 14ac28c468ca81b645cabf21552748a46f7b21e2 (patch) | |
| tree | 917469516808b98a43b5e20c0efc712d32b963f0 /Mammoth/Couscous/java/util/AbstractMap.cs | |
| parent | 7657de4df31f35408a75ea927c3141cf3ff0cee8 (diff) | |
Update java-mammoth
Diffstat (limited to 'Mammoth/Couscous/java/util/AbstractMap.cs')
| -rw-r--r-- | Mammoth/Couscous/java/util/AbstractMap.cs | 9 |
1 files changed, 5 insertions, 4 deletions
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<object>().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<TKey, TValue> other); public abstract bool containsKey(TKey key); public abstract Set<Map__Entry<TKey, TValue>> entrySet(); public abstract Collection<TValue> values(); - + public abstract Optional<TValue> _lookup(TKey key); public abstract System.Collections.Generic.IDictionary<TKey, TValue> AsDictionary(); public abstract System.Collections.IDictionary AsUntypedDictionary(); |
