BigDecimalOrder

trait BigDecimalOrder extends Order[BigDecimal]
trait Order[BigDecimal]
trait PartialOrder[BigDecimal]
trait Eq[BigDecimal]
trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

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

Inherited methods

def comparison(x: BigDecimal, y: BigDecimal): 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: BigDecimal, y: BigDecimal): Double
Inherited from
Order
def partialComparison(x: BigDecimal, y: BigDecimal): 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: BigDecimal, y: BigDecimal): Option[BigDecimal]

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: BigDecimal, y: BigDecimal): Option[BigDecimal]

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[BigDecimal]

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: BigDecimal, y: BigDecimal): 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