IntervalValuePartialOrder

Interval partial order defined as follows:

I <= J if I is a subset of J.

trait Eq[Interval[A]]
class Object
trait Matchable
class Any

Value members

Concrete methods

override def eqv(x: Interval[A], y: Interval[A]): Boolean
Definition Classes
override def gt(x: Interval[A], y: Interval[A]): Boolean
Definition Classes
override def gteqv(x: Interval[A], y: Interval[A]): Boolean
Definition Classes
override def lt(x: Interval[A], y: Interval[A]): Boolean
Definition Classes
override def lteqv(x: Interval[A], y: Interval[A]): Boolean
Definition Classes

Inherited methods

def neqv(x: Interval[A], y: Interval[A]): Boolean

Returns false if x and y are equivalent, true otherwise.

Returns false if x and y are equivalent, true otherwise.

Inherited from:
Eq

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
def pmax(x: Interval[A], y: Interval[A]): Option[Interval[A]]

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

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 tryCompare(x: Interval[A], y: Interval[A]): 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