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

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

Issue 12537009: Rename XMatching to XWhere. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge and rebuild dom libraries. Created 7 years, 9 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/collection/collections.dart ('k') | sdk/lib/collection/linked_hash_set.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/collection/hash_set.dart
diff --git a/sdk/lib/collection/hash_set.dart b/sdk/lib/collection/hash_set.dart
index 69080293a042a40849539d22dcd0c79410a73482..c9cc8136b8cb4104e126cd167f127fe1f3eeea7c 100644
--- a/sdk/lib/collection/hash_set.dart
+++ b/sdk/lib/collection/hash_set.dart
@@ -55,7 +55,7 @@ class HashSet<E> extends Collection<E> implements Set<E> {
IterableMixinWorkaround.retainAll(this, objectsToRetain);
}
- void _filterMatching(bool test(E element), bool removeMatching) {
+ void _filterWhere(bool test(E element), bool removeMatching) {
int entrySize = _table._entrySize;
int length = _table._table.length;
for (int offset = 0; offset < length; offset += entrySize) {
@@ -73,12 +73,12 @@ class HashSet<E> extends Collection<E> implements Set<E> {
_table._checkCapacity();
}
- void removeMatching(bool test(E element)) {
- _filterMatching(test, true);
+ void removeWhere(bool test(E element)) {
+ _filterWhere(test, true);
}
- void retainMatching(bool test(E element)) {
- _filterMatching(test, false);
+ void retainWhere(bool test(E element)) {
+ _filterWhere(test, false);
}
void clear() {
« no previous file with comments | « sdk/lib/collection/collections.dart ('k') | sdk/lib/collection/linked_hash_set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698