| 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 /** | 5 /** |
| 6 * 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 |
| 7 * without duplicates. | 7 * without duplicates. |
| 8 */ | 8 */ |
| 9 interface Set<E> extends Collection<E> | 9 interface Set<E> extends Collection<E> |
| 10 default HashSetImplementation<E extends Hashable> { | 10 default HashSetImplementation<E extends Hashable> { |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 interface HashSet<E extends Hashable> extends Set<E> | 71 interface HashSet<E extends Hashable> extends Set<E> |
| 72 default HashSetImplementation<E extends Hashable> { | 72 default HashSetImplementation<E extends Hashable> { |
| 73 HashSet(); | 73 HashSet(); |
| 74 | 74 |
| 75 /** | 75 /** |
| 76 * Creates a [Set] that contains all elements of [other]. | 76 * Creates a [Set] that contains all elements of [other]. |
| 77 */ | 77 */ |
| 78 HashSet.from(Iterable<E> other); | 78 HashSet.from(Iterable<E> other); |
| 79 } | 79 } |
| OLD | NEW |