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

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: Forgot to upload before committing Created 7 years, 6 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
« no previous file with comments | « sdk/lib/core/iterable.dart ('k') | sdk/lib/core/set.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/core/map.dart
diff --git a/sdk/lib/core/map.dart b/sdk/lib/core/map.dart
index 4f67ea1e946d96a083da99a0e82cb89a86cbf672..88776c12721b4d2bbd29211a4879799c4d8539bc 100644
--- a/sdk/lib/core/map.dart
+++ b/sdk/lib/core/map.dart
@@ -22,12 +22,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
@@ -35,7 +35,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].
@@ -69,7 +69,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.
@@ -86,7 +86,6 @@ abstract class Map<K, V> {
/**
* The keys of [this].
*/
- // TODO(floitsch): this should return a [Set].
Iterable<K> get keys;
/**
« no previous file with comments | « sdk/lib/core/iterable.dart ('k') | sdk/lib/core/set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698