Packages

trait Order[F] extends Equal[F]

Safer version of scala.math.Ordering.

Self Type
Order[F]
Source
Order.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Order
  2. Equal
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait EqualLaw extends AnyRef
    Definition Classes
    Equal
  2. trait OrderLaw extends EqualLaw

Abstract Value Members

  1. abstract def order(x: F, y: F): Ordering

Concrete Value Members

  1. def apply(x: F, y: F): Ordering
  2. def contramap[B](f: (B) ⇒ F): Order[B]
    Definition Classes
    OrderEqual
  3. def equal(x: F, y: F): Boolean
    Definition Classes
    OrderEqual
  4. def equalIsNatural: Boolean

    returns

    true, if equal(f1, f2) is known to be equivalent to f1 == f2

    Definition Classes
    Equal
  5. def equalLaw: EqualLaw
    Definition Classes
    Equal
  6. val equalSyntax: EqualSyntax[F]
    Definition Classes
    Equal
  7. def greaterThan(x: F, y: F): Boolean
  8. def greaterThanOrEqual(x: F, y: F): Boolean
  9. def lessThan(x: F, y: F): Boolean
  10. def lessThanOrEqual(x: F, y: F): Boolean
  11. def max(x: F, y: F): F
  12. def min(x: F, y: F): F
  13. def orderLaw: OrderLaw
  14. val orderSyntax: OrderSyntax[F]
  15. def reverseOrder: Order[F]
  16. def sort(x: F, y: F): (F, F)
  17. def toScalaOrdering: scala.math.Ordering[F]

    Note

    Order.fromScalaOrdering(toScalaOrdering).order(x, y)

    this.order(x, y)