diff options
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(); |
