ToggleOrder
Value members
Inherited methods
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
Returns true if x
= y
, false otherwise.
Returns true if x
= y
, false otherwise.
- Definition Classes
- Inherited from:
- Order
Returns true if x
> y
, false otherwise.
Returns true if x
> y
, false otherwise.
- Definition Classes
- Inherited from:
- Order
Returns true if x
>= y
, false otherwise.
Returns true if x
>= y
, false otherwise.
- Definition Classes
- Inherited from:
- Order
Returns true if x
< y
, false otherwise.
Returns true if x
< y
, false otherwise.
- Definition Classes
- Inherited from:
- Order
Returns true if x
<= y
, false otherwise.
Returns true if x
<= y
, false otherwise.
- Definition Classes
- Inherited from:
- Order
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
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
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
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
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