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; |
| 6 |
5 /** | 7 /** |
6 * This class is the public interface of a set. A set is a collection | 8 * This class is the public interface of a set. A set is a collection |
7 * without duplicates. | 9 * without duplicates. |
8 */ | 10 */ |
9 abstract class Set<E> extends Collection<E> { | 11 abstract class Set<E> extends Collection<E> { |
10 factory Set() => new _HashSetImpl<E>(); | 12 factory Set() => new _HashSetImpl<E>(); |
11 | 13 |
12 /** | 14 /** |
13 * Creates a [Set] that contains all elements of [other]. | 15 * Creates a [Set] that contains all elements of [other]. |
14 */ | 16 */ |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 } | 240 } |
239 | 241 |
240 // The entries in the set. May contain null or the sentinel value. | 242 // The entries in the set. May contain null or the sentinel value. |
241 List<E> _entries; | 243 List<E> _entries; |
242 | 244 |
243 // The next valid index in [_entries] or the length of [entries_]. | 245 // The next valid index in [_entries] or the length of [entries_]. |
244 // If it is the length of [_entries], calling [hasNext] on the | 246 // If it is the length of [_entries], calling [hasNext] on the |
245 // iterator will return false. | 247 // iterator will return false. |
246 int _nextValidIndex; | 248 int _nextValidIndex; |
247 } | 249 } |
OLD | NEW |