Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Side by Side Diff: lib/core/set.dart

Issue 10993059: Stop using the Hashable interface. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Another space removed. Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « lib/core/num.dart ('k') | lib/core/string.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 abstract class Set<E> extends Collection<E> { 9 abstract class Set<E> extends Collection<E> {
10 factory Set() => new HashSetImplementation<E>(); 10 factory Set() => new HashSetImplementation<E>();
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 */ 62 */
63 Set<E> intersection(Collection<E> other); 63 Set<E> intersection(Collection<E> other);
64 64
65 /** 65 /**
66 * Removes all elements in the set. 66 * Removes all elements in the set.
67 */ 67 */
68 void clear(); 68 void clear();
69 69
70 } 70 }
71 71
72 abstract class HashSet<E extends Hashable> extends Set<E> { 72 abstract class HashSet<E> extends Set<E> {
73 factory HashSet() => new HashSetImplementation<E>(); 73 factory HashSet() => new HashSetImplementation<E>();
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 factory HashSet.from(Iterable<E> other) => 78 factory HashSet.from(Iterable<E> other) =>
79 new HashSetImplementation<E>.from(other); 79 new HashSetImplementation<E>.from(other);
80 } 80 }
OLDNEW
« no previous file with comments | « lib/core/num.dart ('k') | lib/core/string.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698