TotalDoubleOrder

trait TotalDoubleOrder extends Order[Double]
trait Order[Double]
trait PartialOrder[Double]
trait Eq[Double]
trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

def compare(x: Double, y: Double): Int
override
def eqv(x: Double, y: Double): Boolean
Definition Classes
Order -> PartialOrder -> Eq
override
def gt(x: Double, y: Double): Boolean
Definition Classes
Order -> PartialOrder
override
def gteqv(x: Double, y: Double): Boolean
Definition Classes
Order -> PartialOrder
override
def lt(x: Double, y: Double): Boolean
Definition Classes
Order -> PartialOrder
override
def lteqv(x: Double, y: Double): Boolean
Definition Classes
Order -> PartialOrder
override
def max(x: Double, y: Double): Double
Definition Classes
Order
override
def min(x: Double, y: Double): Double
Definition Classes
Order
override
def neqv(x: Double, y: Double): Boolean
Definition Classes
Order -> Eq

Inherited methods

def comparison(x: Double, y: Double): Comparison

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

Inherited from
Order
def partialCompare(x: Double, y: Double): Double
Inherited from
Order
def partialComparison(x: Double, y: Double): Option[Comparison]

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Inherited from
PartialOrder
def pmax(x: Double, y: Double): Option[Double]

Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

Inherited from
PartialOrder
def pmin(x: Double, y: Double): Option[Double]

Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

Inherited from
PartialOrder
def toOrdering: Ordering[Double]

Convert a Order[A] to a scala.math.Ordering[A] instance.

Convert a Order[A] to a scala.math.Ordering[A] instance.

Inherited from
Order
def tryCompare(x: Double, y: Double): Option[Int]

Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is:

Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is:

  • negative iff x < y
  • zero iff x = y
  • positive iff x > y
Inherited from
PartialOrder