CharOrder

class CharOrder extends Order[Char] with Hash[Char] with CharBounded with CharEnumerable
trait BoundedEnumerable[Char]
trait PartialNext[Char]
trait PartialPrevious[Char]
trait UpperBounded[Char]
trait LowerBounded[Char]
trait Hash[Char]
trait Order[Char]
trait PartialOrder[Char]
trait Eq[Char]
trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

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

Inherited methods

def comparison(x: Char, y: Char): 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: Char): Char
Inherited from
BoundedEnumerable
def cyclePrevious(a: Char): Char
Inherited from
BoundedEnumerable
def max(x: Char, y: Char): Char

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

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

Inherited from
Order
override def maxBound: Char
Definition Classes
Inherited from
CharBounded
def membersAscending: LazyList[Char]

Enumerate the members in ascending order.

Enumerate the members in ascending order.

Inherited from
PartialNextLowerBounded
def membersDescending: LazyList[Char]

Enumerate the members in descending order.

Enumerate the members in descending order.

Inherited from
PartialPreviousUpperBounded
def min(x: Char, y: Char): Char

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

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

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

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

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

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