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

Side by Side Diff: sdk/lib/core/set.dart

Issue 1307363005: Add optional message argument to assert statements in the VM. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: More tests. Created 4 years 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
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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.core; 5 part of dart.core;
6 6
7 /** 7 /**
8 * A collection of objects in which each object can occur only once. 8 * A collection of objects in which each object can occur only once.
9 * 9 *
10 * That is, for each object of the element type, the object is either considered 10 * That is, for each object of the element type, the object is either considered
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 /** 141 /**
142 * Removes all elements of this set that are not elements in [elements]. 142 * Removes all elements of this set that are not elements in [elements].
143 * 143 *
144 * Checks for each element of [elements] whether there is an element in this 144 * Checks for each element of [elements] whether there is an element in this
145 * set that is equal to it (according to `this.contains`), and if so, the 145 * set that is equal to it (according to `this.contains`), and if so, the
146 * equal element in this set is retained, and elements that are not equal 146 * equal element in this set is retained, and elements that are not equal
147 * to any element in `elements` are removed. 147 * to any element in `elements` are removed.
148 */ 148 */
149 void retainAll(Iterable<Object> elements); 149 void retainAll(Iterable<Object> elements);
150 150
151 /** 151 /*
152 * Removes all elements of this set that satisfy [test]. 152 * * Removes all elements of this set that satisfy [test].
153 */ 153 */
154 void removeWhere(bool test(E element)); 154 void removeWhere(bool test(E element));
155 155
156 /** 156 /**
157 * Removes all elements of this set that fail to satisfy [test]. 157 * Removes all elements of this set that fail to satisfy [test].
158 */ 158 */
159 void retainWhere(bool test(E element)); 159 void retainWhere(bool test(E element));
160 160
161 /** 161 /**
162 * Returns whether this Set contains all the elements of [other]. 162 * Returns whether this Set contains all the elements of [other].
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 /* Creates a [Set] with the same elements and behavior as this `Set`. 195 /* Creates a [Set] with the same elements and behavior as this `Set`.
196 * 196 *
197 * The returned set behaves the same as this set 197 * The returned set behaves the same as this set
198 * with regard to adding and removing elements. 198 * with regard to adding and removing elements.
199 * It initially contains the same elements. 199 * It initially contains the same elements.
200 * If this set specifies an ordering of the elements, 200 * If this set specifies an ordering of the elements,
201 * the returned set will have the same order. 201 * the returned set will have the same order.
202 */ 202 */
203 Set<E> toSet(); 203 Set<E> toSet();
204 } 204 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698