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

Unified Diff: lib/core/set.dart

Issue 10948009: Revert 12494. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/core/regexp.dart ('k') | lib/core/stopwatch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/core/set.dart
===================================================================
--- lib/core/set.dart (revision 12500)
+++ lib/core/set.dart (working copy)
@@ -6,15 +6,14 @@
* This class is the public interface of a set. A set is a collection
* without duplicates.
*/
-abstract class Set<E> extends Collection<E> {
- factory Set() => new HashSetImplementation<E>();
+interface Set<E> extends Collection<E>
+ default HashSetImplementation<E extends Hashable> {
+ Set();
/**
* Creates a [Set] that contains all elements of [other].
*/
- factory Set.from(Iterable<E> other) {
- return new HashSetImplementation<E>.from(other);
- }
+ Set.from(Iterable<E> other);
/**
* Returns true if [value] is in the set.
@@ -69,12 +68,12 @@
}
-abstract class HashSet<E extends Hashable> extends Set<E> {
- factory HashSet() => new HashSetImplementation<E>();
+interface HashSet<E extends Hashable> extends Set<E>
+ default HashSetImplementation<E extends Hashable> {
+ HashSet();
/**
* Creates a [Set] that contains all elements of [other].
*/
- factory HashSet.from(Iterable<E> other) =>
- new HashSetImplementation<E>.from(other);
+ HashSet.from(Iterable<E> other);
}
« no previous file with comments | « lib/core/regexp.dart ('k') | lib/core/stopwatch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698