SafeLongIsReal

@SerialVersionUID(1L)
object SafeLongIsReal extends SafeLongIsReal with Serializable
trait SafeLongIsReal
trait SafeLongTruncatedDivision
trait SafeLongSigned
trait SafeLongOrder
trait Order[SafeLong]
trait PartialOrder[SafeLong]
trait Eq[SafeLong]
trait Serializable
class Object
trait Matchable
class Any

Value members

Inherited methods

override
Definition Classes
SafeLongSigned -> Signed
Inherited from
SafeLongSigned
Inherited from
IsIntegral
def compare(x: SafeLong, y: SafeLong): Int
Inherited from
SafeLongOrder
def comparison(x: SafeLong, y: SafeLong): 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
override
def eqv(x: SafeLong, y: SafeLong): Boolean
Definition Classes
SafeLongOrder -> Order -> PartialOrder -> Eq
Inherited from
SafeLongOrder
Inherited from
IsIntegral
def fmod(lhs: SafeLong, rhs: SafeLong): SafeLong
Inherited from
SafeLongTruncatedDivision
def fquot(lhs: SafeLong, rhs: SafeLong): SafeLong
Inherited from
SafeLongTruncatedDivision
override
Definition Classes
SafeLongTruncatedDivision -> TruncatedDivision
Inherited from
SafeLongTruncatedDivision
override
def gt(x: SafeLong, y: SafeLong): Boolean
Definition Classes
SafeLongOrder -> Order -> PartialOrder
Inherited from
SafeLongOrder
override
def gteqv(x: SafeLong, y: SafeLong): Boolean
Definition Classes
SafeLongOrder -> Order -> PartialOrder
Inherited from
SafeLongOrder
def isSignNegative(a: SafeLong): Boolean
Inherited from
Signed
def isSignNonNegative(a: SafeLong): Boolean
Inherited from
Signed
def isSignNonPositive(a: SafeLong): Boolean
Inherited from
Signed
def isSignNonZero(a: SafeLong): Boolean
Inherited from
Signed
def isSignPositive(a: SafeLong): Boolean
Inherited from
Signed
def isSignZero(a: SafeLong): Boolean
Inherited from
Signed
def isWhole(a: SafeLong): Boolean
Inherited from
IsIntegral
override
def lt(x: SafeLong, y: SafeLong): Boolean
Definition Classes
SafeLongOrder -> Order -> PartialOrder
Inherited from
SafeLongOrder
override
def lteqv(x: SafeLong, y: SafeLong): Boolean
Definition Classes
SafeLongOrder -> Order -> PartialOrder
Inherited from
SafeLongOrder

If x > y, return x, else return y.

If x > y, return x, else return y.

Inherited from
Order

If x < y, return x, else return y.

If x < y, return x, else return y.

Inherited from
Order
override
def neqv(x: SafeLong, y: SafeLong): Boolean
Definition Classes
SafeLongOrder -> Order -> Eq
Inherited from
SafeLongOrder
def partialCompare(x: SafeLong, y: SafeLong): Double
Inherited from
Order
def partialComparison(x: SafeLong, y: SafeLong): 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: SafeLong, y: SafeLong): Option[SafeLong]

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

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
Inherited from
IsIntegral
def sign(a: SafeLong): Sign

Returns Zero if a is 0, Positive if a is positive, and Negative is a is negative.

Returns Zero if a is 0, Positive if a is positive, and Negative is a is negative.

Inherited from
Signed
override
def signum(a: SafeLong): Int
Definition Classes
SafeLongSigned -> Signed
Inherited from
SafeLongSigned
Inherited from
SafeLongTruncatedDivision
Inherited from
IsRational
def toBigInt(n: SafeLong): BigInt
Inherited from
SafeLongIsReal
def toBigIntOpt(n: SafeLong): Opt[BigInt]
Inherited from
SafeLongTruncatedDivision
def toDouble(n: SafeLong): Double
Inherited from
SafeLongIsReal
def toOrdering: Ordering[SafeLong]

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
Inherited from
IsIntegral
Inherited from
IsAlgebraic
Inherited from
SafeLongTruncatedDivision
override
Definition Classes
SafeLongTruncatedDivision -> TruncatedDivision
Inherited from
SafeLongTruncatedDivision
def tryCompare(x: SafeLong, y: SafeLong): 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