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

Unified Diff: corelib/src/queue.dart

Issue 10890030: Move core and coreimpl from corelib/ to lib/core and lib/coreimpl. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase. Created 8 years, 4 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 | « corelib/src/print.dart ('k') | corelib/src/regexp.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: corelib/src/queue.dart
diff --git a/corelib/src/queue.dart b/corelib/src/queue.dart
deleted file mode 100644
index 5cdb5ee0ded97563bf21ce8b4208e273a47a5866..0000000000000000000000000000000000000000
--- a/corelib/src/queue.dart
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-/**
- * A [Queue] is a collection that can be manipulated at both ends. One
- * can iterate over the elements of a queue through [forEach] or with
- * an [Iterator].
- */
-interface Queue<E> extends Collection<E> default DoubleLinkedQueue<E> {
-
- /**
- * Creates a queue.
- */
- Queue();
-
- /**
- * 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);
-
- /**
- * Removes and returns the first element of this queue. Throws an
- * [EmptyQueueException] exception if this queue is empty.
- */
- E removeFirst();
-
- /**
- * Removes and returns the last element of the queue. Throws an
- * [EmptyQueueException] exception if this queue is empty.
- */
- E removeLast();
-
- /**
- * Adds [value] at the beginning of the queue.
- */
- void addFirst(E value);
-
- /**
- * Adds [value] at the end of the queue.
- */
- void addLast(E value);
-
- /**
- * Adds [value] at the end of the queue.
- */
- void add(E value);
-
- /**
- * Adds all elements of [collection] at the end of the queue. The
- * length of the queue is extended by the length of [collection].
- */
- void addAll(Collection<E> collection);
-
- /**
- * Returns the first element of the queue. Throws an
- * [EmptyQueueException] exception if this queue is empty.
- */
- E first();
-
- /**
- * Returns the last element of the queue. Throws an
- * [EmptyQueueException] exception if this queue is empty.
- */
- E last();
-
- /**
- * Removes all elements in the queue. The size of the queue becomes zero.
- */
- void clear();
-}
« no previous file with comments | « corelib/src/print.dart ('k') | corelib/src/regexp.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698