trait Order[F] extends Equal[F]
Safer version of scala.math.Ordering.
- Self Type
- Order[F]
- Source
- Order.scala
- Alphabetic
- By Inheritance
- Order
- Equal
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
Concrete Value Members
- def apply(x: F, y: F): Ordering
- def contramap[B](f: (B) ⇒ F): Order[B]
- def equal(x: F, y: F): Boolean
-
def
equalIsNatural: Boolean
- returns
true, if
equal(f1, f2)
is known to be equivalent tof1 == f2
- Definition Classes
- Equal
-
def
equalLaw: EqualLaw
- Definition Classes
- Equal
-
val
equalSyntax: EqualSyntax[F]
- Definition Classes
- Equal
- def greaterThan(x: F, y: F): Boolean
- def greaterThanOrEqual(x: F, y: F): Boolean
- def lessThan(x: F, y: F): Boolean
- def lessThanOrEqual(x: F, y: F): Boolean
- def max(x: F, y: F): F
- def min(x: F, y: F): F
- def orderLaw: OrderLaw
- val orderSyntax: OrderSyntax[F]
- def reverseOrder: Order[F]
- def sort(x: F, y: F): (F, F)
-
def
toScalaOrdering: scala.math.Ordering[F]
- Note
Order.fromScalaOrdering(toScalaOrdering).order(x, y)
this.order(x, y)