| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 /** | 5 /** |
| 6 * Base implementations of [Set]. | 6 * Base implementations of [Set]. |
| 7 */ | 7 */ |
| 8 part of "collection.dart"; | 8 part of dart.collection; |
| 9 | 9 |
| 10 /** | 10 /** |
| 11 * Mixin implementation of [Set]. | 11 * Mixin implementation of [Set]. |
| 12 * | 12 * |
| 13 * This class provides a base implementation of a `Set` that depends only | 13 * This class provides a base implementation of a `Set` that depends only |
| 14 * on the abstract members: [add], [contains], [lookup], [remove], | 14 * on the abstract members: [add], [contains], [lookup], [remove], |
| 15 * [iterator], [length] and [toSet]. | 15 * [iterator], [length] and [toSet]. |
| 16 * | 16 * |
| 17 * Some of the methods assume that `toSet` creates a modifiable set. | 17 * Some of the methods assume that `toSet` creates a modifiable set. |
| 18 * If using this mixin for an unmodifiable set, | 18 * If using this mixin for an unmodifiable set, |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 abstract class SetBase<E> extends SetMixin<E> { | 301 abstract class SetBase<E> extends SetMixin<E> { |
| 302 /** | 302 /** |
| 303 * Convert a `Set` to a string as `{each, element, as, string}`. | 303 * Convert a `Set` to a string as `{each, element, as, string}`. |
| 304 * | 304 * |
| 305 * Handles circular references where converting one of the elements | 305 * Handles circular references where converting one of the elements |
| 306 * to a string ends up converting [set] to a string again. | 306 * to a string ends up converting [set] to a string again. |
| 307 */ | 307 */ |
| 308 static String setToString(Set set) => | 308 static String setToString(Set set) => |
| 309 IterableBase.iterableToFullString(set, '{', '}'); | 309 IterableBase.iterableToFullString(set, '{', '}'); |
| 310 } | 310 } |
| OLD | NEW |