Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Unified Diff: sdk/lib/collection/hash_map.dart

Issue 14246008: Allow Object when doing lookups. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/collection/hash_map.dart
diff --git a/sdk/lib/collection/hash_map.dart b/sdk/lib/collection/hash_map.dart
index f5fcd8514316cac8db7f30c3aacb0378f2bf1468..c3d72bea229edb21878f2a239dd2902bba37fb57 100644
--- a/sdk/lib/collection/hash_map.dart
+++ b/sdk/lib/collection/hash_map.dart
@@ -17,17 +17,17 @@ class HashMap<K, V> implements Map<K, V> {
external Iterable<K> get keys;
external Iterable<V> get values;
- external bool containsKey(K key);
- external bool containsValue(V value);
+ external bool containsKey(Object key);
+ external bool containsValue(Object value);
external void addAll(Map<K, V> other);
- external V operator [](K key);
+ external V operator [](Object key);
external void operator []=(K key, V value);
external V putIfAbsent(K key, V ifAbsent());
- external V remove(K key);
+ external V remove(Object key);
external void clear();
external void forEach(void action(K key, V value));

Powered by Google App Engine
This is Rietveld 408576698