What is a Scala Comparable Feature?

I am looking for a Scala analogue of C # IComparable, and I found the Comparable property. I mean - Comparable is mentioned, but when I look for it at http://www.scala-lang.org/api/current/scala/ , I get 0 hits. Because of the name, using Google, I get a lot of "how Scala is comparable to ...".

Is there any resource I could read about this mysterious Comparable? After Ordered expands it, it must exist.

+8
scala traits comparable
source share
1 answer

Comparable you saw about should be java.lang.Comparable . Scala stdlib does not have a value named Comparable . Scala Ordered trait extends java.lang.Comparable .

+16
source share

All Articles