OLD | NEW |
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 |
11 * to be in the set, or to _not_ be in the set. | 11 * to be in the set, or to _not_ be in the set. |
12 * | 12 * |
13 * Set implementations may consider some elements indistinguishable. These | 13 * Set implementations may consider some elements indistinguishable. These |
14 * elements are treated as being the same for any operation on the set. | 14 * elements are treated as being the same for any operation on the set. |
15 * | 15 * |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 } |
OLD | NEW |