BooleanOrder

class BooleanOrder extends Order[Boolean] with Hash[Boolean] with BooleanBounded with BooleanEnumerable
trait BoundedEnumerable[Boolean]
trait PartialNext[Boolean]
trait PartialPrevious[Boolean]
trait UpperBounded[Boolean]
trait LowerBounded[Boolean]
trait Hash[Boolean]
trait Order[Boolean]
trait PartialOrder[Boolean]
trait Eq[Boolean]
trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

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

Inherited methods

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

Enumerate the members in ascending order.

Enumerate the members in ascending order.

Inherited from
PartialNextLowerBounded
def membersDescending: LazyList[Boolean]

Enumerate the members in descending order.

Enumerate the members in descending order.

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

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

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

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