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