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

Unified Diff: lib/core/queue.dart

Issue 10939030: Reapply conversion of most core interfaces to abstract classes. (Closed) Base URL: https://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/options.dart ('k') | lib/core/regexp.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/core/queue.dart
diff --git a/lib/core/queue.dart b/lib/core/queue.dart
index 5cdb5ee0ded97563bf21ce8b4208e273a47a5866..beff3d7b9942e9e632d43bd9cc999fc8c1fd488c 100644
--- a/lib/core/queue.dart
+++ b/lib/core/queue.dart
@@ -7,18 +7,18 @@
* can iterate over the elements of a queue through [forEach] or with
* an [Iterator].
*/
-interface Queue<E> extends Collection<E> default DoubleLinkedQueue<E> {
+abstract class Queue<E> extends Collection<E> {
/**
* Creates a queue.
*/
- Queue();
+ factory Queue() => new DoubleLinkedQueue<E>();
/**
* Creates a queue with the elements of [other]. The order in
* the queue will be the order provided by the iterator of [other].
*/
- Queue.from(Iterable<E> other);
+ factory Queue.from(Iterable<E> other) => new DoubleLinkedQueue<E>.from(other);
/**
* Removes and returns the first element of this queue. Throws an
« no previous file with comments | « lib/core/options.dart ('k') | lib/core/regexp.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698