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

Side by Side Diff: tool/input_sdk/lib/core/set.dart

Issue 1112403004: SDK fixes (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Formatting fix Created 5 years, 7 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
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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 * all the elements of [other]. 162 * all the elements of [other].
163 */ 163 */
164 Set<E> union(Set<E> other); 164 Set<E> union(Set<E> other);
165 165
166 /** 166 /**
167 * Returns a new set with the the elements of this that are not in [other]. 167 * Returns a new set with the the elements of this that are not in [other].
168 * 168 *
169 * That is, the returned set contains all the elements of this [Set] that 169 * That is, the returned set contains all the elements of this [Set] that
170 * are not elements of [other] according to `other.contains`. 170 * are not elements of [other] according to `other.contains`.
171 */ 171 */
172 Set<E> difference(Set<E> other); 172 Set<E> difference(Set<Object> other);
173 173
174 /** 174 /**
175 * Removes all elements in the set. 175 * Removes all elements in the set.
176 */ 176 */
177 void clear(); 177 void clear();
178 178
179 /* Creates a [Set] with the same elements and behavior as this `Set`. 179 /* Creates a [Set] with the same elements and behavior as this `Set`.
180 * 180 *
181 * The returned set behaves the same as this set 181 * The returned set behaves the same as this set
182 * with regard to adding and removing elements. 182 * with regard to adding and removing elements.
183 * It initially contains the same elements. 183 * It initially contains the same elements.
184 * If this set specifies an ordering of the elements, 184 * If this set specifies an ordering of the elements,
185 * the returned set will have the same order. 185 * the returned set will have the same order.
186 */ 186 */
187 Set<E> toSet(); 187 Set<E> toSet();
188 } 188 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698