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

Side by Side Diff: sdk/lib/collection/hash_set.dart

Issue 14022007: Move Iterable implementation to collection. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Merge to head. 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/collection/collection_sources.gypi ('k') | sdk/lib/collection/queue.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart.collection; 5 part of dart.collection;
6 6
7 /** Common parts of [HashSet] and [LinkedHashSet] implementations. */ 7 /** Common parts of [HashSet] and [LinkedHashSet] implementations. */
8 abstract class _HashSetBase<E> extends Iterable<E> implements Set<E> { 8 abstract class _HashSetBase<E> extends IterableBase<E> implements Set<E> {
9 // Set. 9 // Set.
10 bool containsAll(Iterable<E> other) { 10 bool containsAll(Iterable<E> other) {
11 for (E object in other) { 11 for (E object in other) {
12 if (!this.contains(object)) return false; 12 if (!this.contains(object)) return false;
13 } 13 }
14 return true; 14 return true;
15 } 15 }
16 16
17 /** Create a new Set of the same type as this. */ 17 /** Create a new Set of the same type as this. */
18 Set _newSet(); 18 Set _newSet();
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 external void removeWhere(bool test(E element)); 84 external void removeWhere(bool test(E element));
85 85
86 external void retainWhere(bool test(E element)); 86 external void retainWhere(bool test(E element));
87 87
88 external void clear(); 88 external void clear();
89 89
90 // Set. 90 // Set.
91 Set<E> _newSet() => new HashSet<E>(); 91 Set<E> _newSet() => new HashSet<E>();
92 } 92 }
OLDNEW
« no previous file with comments | « sdk/lib/collection/collection_sources.gypi ('k') | sdk/lib/collection/queue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698