ShortOrder

class ShortOrder extends Order[Short] with Hash[Short] with ShortBounded with ShortEnumerable
trait BoundedEnumerable[Short]
trait PartialNext[Short]
trait PartialPrevious[Short]
trait UpperBounded[Short]
trait LowerBounded[Short]
trait Hash[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
override def gt(x: Short, y: Short): Boolean
Definition Classes
override def gteqv(x: Short, y: Short): Boolean
Definition Classes
def hash(x: Short): Int
override def lt(x: Short, y: Short): Boolean
Definition Classes
override def lteqv(x: Short, y: Short): Boolean
Definition Classes
override def max(x: Short, y: Short): Short
Definition Classes
override def min(x: Short, y: Short): Short
Definition Classes
override def neqv(x: Short, y: Short): Boolean
Definition Classes

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 cycleNext(a: Short): Short
Inherited from
BoundedEnumerable
def cyclePrevious(a: Short): Short
Inherited from
BoundedEnumerable
override def maxBound: Short
Definition Classes
Inherited from
ShortBounded
def membersAscending: LazyList[Short]

Enumerate the members in ascending order.

Enumerate the members in ascending order.

Inherited from
PartialNextLowerBounded
def membersDescending: LazyList[Short]

Enumerate the members in descending order.

Enumerate the members in descending order.

Inherited from
PartialPreviousUpperBounded
override def minBound: Short
Definition Classes
Inherited from
ShortBounded
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
override def partialNext(a: Short): Option[Short]
Definition Classes
Inherited from
ShortEnumerable
override def partialPrevious(a: Short): Option[Short]
Definition Classes
Inherited from
ShortEnumerable
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

Concrete fields

override val order: Order[Short]