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

Unified Diff: pkg/mdv_observe/lib/src/observable_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 | « no previous file | pkg/serialization/lib/src/serialization_helpers.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/mdv_observe/lib/src/observable_map.dart
diff --git a/pkg/mdv_observe/lib/src/observable_map.dart b/pkg/mdv_observe/lib/src/observable_map.dart
index ce1e48f748995224fdffc5601b4c980e0e47da76..3ce2d825d47b6ff834948545f3ef067d30c0e516 100644
--- a/pkg/mdv_observe/lib/src/observable_map.dart
+++ b/pkg/mdv_observe/lib/src/observable_map.dart
@@ -94,11 +94,11 @@ class ObservableMap<K, V> extends ObservableBase implements Map<K, V> {
bool get isNotEmpty => !isEmpty;
- bool containsValue(V value) => _map.containsValue(value);
+ bool containsValue(Object value) => _map.containsValue(value);
- bool containsKey(K key) => _map.containsKey(key);
+ bool containsKey(Object key) => _map.containsKey(key);
- V operator [](K key) => _map[key];
+ V operator [](Object key) => _map[key];
void operator []=(K key, V value) {
int len = _map.length;
@@ -124,7 +124,7 @@ class ObservableMap<K, V> extends ObservableBase implements Map<K, V> {
return result;
}
- V remove(K key) {
+ V remove(Object key) {
int len = _map.length;
V result = _map.remove(key);
if (hasObservers && len != _map.length) {
« no previous file with comments | « no previous file | pkg/serialization/lib/src/serialization_helpers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698