diff options
Diffstat (limited to 'src/dotnet-library/scala/Ordered.scala')
-rw-r--r-- | src/dotnet-library/scala/Ordered.scala | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/dotnet-library/scala/Ordered.scala b/src/dotnet-library/scala/Ordered.scala deleted file mode 100644 index 4eeab101f0..0000000000 --- a/src/dotnet-library/scala/Ordered.scala +++ /dev/null @@ -1,36 +0,0 @@ -/* __ *\ -** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2003-2006, LAMP/EPFL ** -** __\ \/ /__/ __ |/ /__/ __ | ** -** /____/\___/_/ |_/____/_/ | | ** -** |/ ** -\* */ - -// $Id$ - - -package scala - -/** A class for totally ordered data. - * - * Note that since version 2006-07-24 this class is no longer covariant in a. - * - * @author Martin Odersky - * @version 1.1, 2006-07-24 - */ -trait Ordered[a] { - - /** Result of comparing <code>this</code> with operand <code>that</code>. - * returns <code>x</code> where - * <code>x < 0</code> iff <code>this < that</code> - * <code>x == 0</code> iff <code>this == that</code> - * <code>x > 0</code> iff <code>this > that</code> - */ - def compare(that: a): Int - - def < (that: a): Boolean = (this compare that) < 0 - def > (that: a): Boolean = (this compare that) > 0 - def <= (that: a): Boolean = (this compare that) <= 0 - def >= (that: a): Boolean = (this compare that) >= 0 - def compareTo(that: a): Int = compare(that) -} |