| OLD | NEW |
| 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 "collection.dart"; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * A [LinkedHashSet] is a hash-table based [Set] implementation. | 8 * A [LinkedHashSet] is a hash-table based [Set] implementation. |
| 9 * | 9 * |
| 10 * The `LinkedHashSet` also keep track of the order that elements were inserted | 10 * The `LinkedHashSet` also keep track of the order that elements were inserted |
| 11 * in, and iteration happens in first-to-last insertion order. | 11 * in, and iteration happens in first-to-last insertion order. |
| 12 * | 12 * |
| 13 * The elements of a `LinkedHashSet` must have consistent [Object.==] | 13 * The elements of a `LinkedHashSet` must have consistent [Object.==] |
| 14 * and [Object.hashCode] implementations. This means that the `==` operator | 14 * and [Object.hashCode] implementations. This means that the `==` operator |
| 15 * must define a stable equivalence relation on the elements (reflexive, | 15 * must define a stable equivalence relation on the elements (reflexive, |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 * | 117 * |
| 118 * The elements are iterated in insertion order. | 118 * The elements are iterated in insertion order. |
| 119 */ | 119 */ |
| 120 void forEach(void action(E element)); | 120 void forEach(void action(E element)); |
| 121 | 121 |
| 122 /** | 122 /** |
| 123 * Provides an iterator that iterates over the elements in insertion order. | 123 * Provides an iterator that iterates over the elements in insertion order. |
| 124 */ | 124 */ |
| 125 Iterator<E> get iterator; | 125 Iterator<E> get iterator; |
| 126 } | 126 } |
| OLD | NEW |