ShortOrder

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

Value members

Concrete methods

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

Inherited methods

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
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
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 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