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

Unified Diff: lib/core/queue.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/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
===================================================================
--- lib/core/queue.dart (revision 12500)
+++ lib/core/queue.dart (working copy)
@@ -7,18 +7,18 @@
* can iterate over the elements of a queue through [forEach] or with
* an [Iterator].
*/
-abstract class Queue<E> extends Collection<E> {
+interface Queue<E> extends Collection<E> default DoubleLinkedQueue<E> {
/**
* Creates a queue.
*/
- factory Queue() => new DoubleLinkedQueue<E>();
+ Queue();
/**
* Creates a queue with the elements of [other]. The order in
* the queue will be the order provided by the iterator of [other].
*/
- factory Queue.from(Iterable<E> other) => new DoubleLinkedQueue<E>.from(other);
+ Queue.from(Iterable<E> 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