ShortSigned

trait ShortSigned extends Signed[Short] with ShortOrder
trait Signed[Short]
trait Order[Short]
trait PartialOrder[Short]
trait Eq[Short]
trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

override
def abs(a: Short): Short
Definition Classes
override
def signum(a: Short): Int
Definition Classes

Inherited methods

def compare(x: Short, y: Short): Int
Inherited from
ShortOrder
def comparison(x: Short, y: Short): 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: Short, y: Short): Boolean
Definition Classes
ShortOrder -> Order -> PartialOrder -> Eq
Inherited from
ShortOrder
override
def gt(x: Short, y: Short): Boolean
Definition Classes
ShortOrder -> Order -> PartialOrder
Inherited from
ShortOrder
override
def gteqv(x: Short, y: Short): Boolean
Definition Classes
ShortOrder -> Order -> PartialOrder
Inherited from
ShortOrder
def isSignNegative(a: Short): Boolean
Inherited from
Signed
def isSignNonNegative(a: Short): Boolean
Inherited from
Signed
def isSignNonPositive(a: Short): Boolean
Inherited from
Signed
def isSignNonZero(a: Short): Boolean
Inherited from
Signed
def isSignPositive(a: Short): Boolean
Inherited from
Signed
def isSignZero(a: Short): Boolean
Inherited from
Signed
override
def lt(x: Short, y: Short): Boolean
Definition Classes
ShortOrder -> Order -> PartialOrder
Inherited from
ShortOrder
override
def lteqv(x: Short, y: Short): Boolean
Definition Classes
ShortOrder -> Order -> PartialOrder
Inherited from
ShortOrder
def max(x: Short, y: Short): Short

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

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

Inherited from
Order
def min(x: Short, y: Short): Short

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

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

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

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

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 sign(a: Short): 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
def toOrdering: Ordering[Short]

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