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

Unified Diff: lib/coreimpl/hash_map_set.dart

Issue 11267018: Make getKeys, getValues getters (keys, values). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with co19 issue number. Created 8 years, 2 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 | « lib/core/map.dart ('k') | lib/coreimpl/linked_hash_map.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/coreimpl/hash_map_set.dart
diff --git a/lib/coreimpl/hash_map_set.dart b/lib/coreimpl/hash_map_set.dart
index fe4a671557407e0ba049aea891f5f2522b34c4fa..e4bb62f1d4b009127e240bb4d0b76c895159bbe2 100644
--- a/lib/coreimpl/hash_map_set.dart
+++ b/lib/coreimpl/hash_map_set.dart
@@ -238,7 +238,7 @@ class HashMapImplementation<K, V> implements HashMap<K, V> {
}
- Collection<K> getKeys() {
+ Collection<K> get keys {
List<K> list = new List<K>(length);
int i = 0;
forEach(void _(K key, V value) {
@@ -247,7 +247,7 @@ class HashMapImplementation<K, V> implements HashMap<K, V> {
return list;
}
- Collection<V> getValues() {
+ Collection<V> get values {
List<V> list = new List<V>(length);
int i = 0;
forEach(void _(K key, V value) {
@@ -366,12 +366,12 @@ class HashSetImplementation<E > implements HashSet<E> {
}
bool every(bool f(E element)) {
- Collection<E> keys = _backingMap.getKeys();
+ Collection<E> keys = _backingMap.keys;
return keys.every(f);
}
bool some(bool f(E element)) {
- Collection<E> keys = _backingMap.getKeys();
+ Collection<E> keys = _backingMap.keys;
return keys.some(f);
}
« no previous file with comments | « lib/core/map.dart ('k') | lib/coreimpl/linked_hash_map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698