LongOrder

class LongOrder extends Order[Long] with Hash[Long] with LongBounded with LongEnumerable
trait BoundedEnumerable[Long]
trait PartialNext[Long]
trait PartialPrevious[Long]
trait LowerBounded[Long]
trait UpperBounded[Long]
trait Hash[Long]
trait Order[Long]
trait PartialOrder[Long]
trait Eq[Long]
trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

def compare(x: Long, y: Long): Int
override def eqv(x: Long, y: Long): Boolean
Definition Classes
override def gt(x: Long, y: Long): Boolean
Definition Classes
override def gteqv(x: Long, y: Long): Boolean
Definition Classes
def hash(x: Long): Int
override def lt(x: Long, y: Long): Boolean
Definition Classes
override def lteqv(x: Long, y: Long): Boolean
Definition Classes
override def max(x: Long, y: Long): Long
Definition Classes
override def min(x: Long, y: Long): Long
Definition Classes
override def neqv(x: Long, y: Long): Boolean
Definition Classes

Inherited methods

def comparison(x: Long, y: Long): 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: Long): Long
Inherited from
BoundedEnumerable
def cyclePrevious(a: Long): Long
Inherited from
BoundedEnumerable
override def maxBound: Long
Definition Classes
Inherited from
LongBounded
def membersAscending: LazyList[Long]

Enumerate the members in ascending order.

Enumerate the members in ascending order.

Inherited from
PartialNextLowerBounded
def membersDescending: LazyList[Long]

Enumerate the members in descending order.

Enumerate the members in descending order.

Inherited from
PartialPreviousUpperBounded
override def minBound: Long
Definition Classes
Inherited from
LongBounded
def partialCompare(x: Long, y: Long): Double
Inherited from
Order
def partialComparison(x: Long, y: Long): 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: Long): Option[Long]
Definition Classes
Inherited from
LongEnumerable
override def partialPrevious(a: Long): Option[Long]
Definition Classes
Inherited from
LongEnumerable
def pmax(x: Long, y: Long): Option[Long]

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

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

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