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

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

Issue 14173003: Remove Collection, Collections and clean up List/Set/Queue implementations of retain/remove. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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/list.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 b363659f7139840333cc1516e043e70559b5b694..f658b521748272e9ebee2c5d68d7b3975fe87071 100644
--- a/sdk/lib/collection/hash_set.dart
+++ b/sdk/lib/collection/hash_set.dart
@@ -5,19 +5,8 @@
part of dart.collection;
/** Common parts of [HashSet] and [LinkedHashSet] implementations. */
-abstract class _HashSetBase<E> extends Collection<E> implements Set<E> {
+abstract class _HashSetBase<E> extends Iterable<E> implements Set<E> {
// Set.
- bool isSubsetOf(Collection<E> other) {
- // Deprecated, and using old signature.
- Set otherSet;
- if (other is Set) {
- otherSet = other;
- } else {
- otherSet = other.toSet();
- }
- return otherSet.containsAll(this);
- }
-
bool containsAll(Iterable<E> other) {
for (E object in other) {
if (!this.contains(object)) return false;
@@ -64,7 +53,7 @@ abstract class _HashSetBase<E> extends Collection<E> implements Set<E> {
retainWhere(retainSet.contains);
}
- String toString() => Collections.collectionToString(this);
+ String toString() => ToString.iterableToString(this);
}
class HashSet<E> extends _HashSetBase<E> {
« no previous file with comments | « sdk/lib/collection/collections.dart ('k') | sdk/lib/collection/list.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698