Packages

t

scala.math

LowPriorityOrderingImplicits

trait LowPriorityOrderingImplicits extends AnyRef

Source
Ordering.scala
Linear Supertypes
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LowPriorityOrderingImplicits
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type AsComparable[A] = (A) => Comparable[_ >: A]

Value Members

  1. implicit def comparatorToOrdering[A](implicit cmp: Comparator[A]): Ordering[A]
  2. implicit def ordered[A](implicit asComparable: AsComparable[A]): Ordering[A]

    This would conflict with all the nice implicit Orderings available, but thanks to the magic of prioritized implicits via subclassing we can make Ordered[A] => Ordering[A] only turn up if nothing else works.

    This would conflict with all the nice implicit Orderings available, but thanks to the magic of prioritized implicits via subclassing we can make Ordered[A] => Ordering[A] only turn up if nothing else works. Since Ordered[A] extends Comparable[A] anyway, we can throw in some Java interop too.