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

Unified Diff: sdk/lib/core/sequences.dart

Issue 11275312: Change <T> to <E> in Sequence<T> and subclasses. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/core/sequences.dart
diff --git a/sdk/lib/core/sequences.dart b/sdk/lib/core/sequences.dart
index 32a3b4088ef23cea008323f4662884c5b151a635..fcf8225afecd7314684b5e76f54165f6084ef326 100644
--- a/sdk/lib/core/sequences.dart
+++ b/sdk/lib/core/sequences.dart
@@ -10,7 +10,7 @@
* It is intended for data structures where access by index is
* the most efficient way to access the data.
*/
-abstract class Sequence<T> {
+abstract class Sequence<E> {
/**
* The limit of valid indices of the sequence.
*
@@ -24,7 +24,7 @@ abstract class Sequence<T> {
* Valid indices must be in the range [:0..length - 1:].
* The lookup operator should be efficient.
*/
- T operator[](int index);
+ E operator[](int index);
}
/**
@@ -100,7 +100,7 @@ class SequenceList<E> extends SequenceCollection<E> implements List<E> {
int get length => sequence.length;
- T operator[](int index) => sequence[index];
+ E operator[](int index) => sequence[index];
int indexOf(E value, [int start = 0]) {
for (int i = start; i < sequence.length; i++) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698