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

Unified Diff: sdk/lib/core/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/core/map.dart
diff --git a/sdk/lib/core/map.dart b/sdk/lib/core/map.dart
index de3807f766be81f55171b59bca3291ad29167fb8..bfd39341f9cd31e5d802d90284161cfd9b98d8c7 100644
--- a/sdk/lib/core/map.dart
+++ b/sdk/lib/core/map.dart
@@ -23,12 +23,12 @@ abstract class Map<K, V> {
/**
* Returns whether this map contains the given [value].
*/
- bool containsValue(V value);
+ bool containsValue(Object value);
/**
* Returns whether this map contains the given [key].
*/
- bool containsKey(K key);
+ bool containsKey(Object key);
/**
* Returns the value for the given [key] or null if [key] is not
@@ -36,7 +36,7 @@ abstract class Map<K, V> {
* use containsKey to distinguish between an absent key and a null
* value, or use the [putIfAbsent] method.
*/
- V operator [](K key);
+ V operator [](Object key);
/**
* Associates the [key] with the given [value].
@@ -59,7 +59,7 @@ abstract class Map<K, V> {
* can be null and a returned null value does not always imply that the
* key is absent.
*/
- V remove(K key);
+ V remove(Object key);
/**
* Removes all pairs from the map.

Powered by Google App Engine
This is Rietveld 408576698