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

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

Issue 12288040: Reapply "Make Comparable generic." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix problems. Created 7 years, 10 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 | « sdk/lib/collection/splay_tree.dart ('k') | sdk/lib/core/date_time.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/core/comparable.dart
diff --git a/sdk/lib/core/comparable.dart b/sdk/lib/core/comparable.dart
index e544201dca6e56ef4ff914b0a6ad6dc25f4dd696..ee92df991f8d0aecc9601168334d16c3f1a7a1ae 100644
--- a/sdk/lib/core/comparable.dart
+++ b/sdk/lib/core/comparable.dart
@@ -22,7 +22,7 @@ typedef int Comparator<T>(T a, T b);
/**
* Interface used by types that have an intrinsic ordering.
*/
-abstract class Comparable {
+abstract class Comparable<T> {
/**
* Compares this object to another [Comparable]
*
@@ -31,7 +31,7 @@ abstract class Comparable {
* May throw an [ArgumentError] if [other] is of a type that
* is not comparable to [:this:].
*/
- int compareTo(Comparable other);
+ int compareTo(T other);
/**
* Compare one comparable to another.
« no previous file with comments | « sdk/lib/collection/splay_tree.dart ('k') | sdk/lib/core/date_time.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698