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

Unified Diff: sdk/lib/collection/linked_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/hash_set.dart ('k') | sdk/lib/collection/queue.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/collection/linked_hash_set.dart
diff --git a/sdk/lib/collection/linked_hash_set.dart b/sdk/lib/collection/linked_hash_set.dart
index 7fc0653b22751e170c38caba8703b2e4204eba85..9c77532345d0ec3ab5af2430357286dc994ab346 100644
--- a/sdk/lib/collection/linked_hash_set.dart
+++ b/sdk/lib/collection/linked_hash_set.dart
@@ -97,7 +97,7 @@ class LinkedHashSet<E> extends Collection<E> implements Set<E> {
IterableMixinWorkaround.retainAll(this, objectsToRemove);
}
- 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;
int offset = _table._next(_LinkedHashTable._HEAD_OFFSET);
@@ -115,12 +115,12 @@ class LinkedHashSet<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/hash_set.dart ('k') | sdk/lib/collection/queue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698