IntervalGeometricPartialOrder

class IntervalGeometricPartialOrder[A] extends PartialOrder[Interval[A]]

Interval partial order defined as follows:

Involving empty intervals:

 - if I and J are empty, then I === J
 - if I (resp. J) is empty and J (resp. I) is non-empty,
   the ordering is undefined (preserving antisymmetry).

For non-empty intervals:

 - I === J is standard Eq semantics (I, J are intersubstituable)
 - I < J if all x \in I, y \in J have x < y
 - I > J if all x \in I, y \in J have x > y
trait PartialOrder[Interval[A]]
trait Eq[Interval[A]]
trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

override
def eqv(x: Interval[A], y: Interval[A]): Boolean
Definition Classes
PartialOrder -> Eq
def partialCompare(i: Interval[A], j: Interval[A]): Double

Inherited methods

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

Returns true if x > y, false otherwise.

Returns true if x > y, false otherwise.

Inherited from
PartialOrder
def gteqv(x: Interval[A], y: Interval[A]): Boolean

Returns true if x >= y, false otherwise.

Returns true if x >= y, false otherwise.

Inherited from
PartialOrder
def lt(x: Interval[A], y: Interval[A]): Boolean

Returns true if x < y, false otherwise.

Returns true if x < y, false otherwise.

Inherited from
PartialOrder
def lteqv(x: Interval[A], y: Interval[A]): Boolean

Returns true if x <= y, false otherwise.

Returns true if x <= y, false otherwise.

Inherited from
PartialOrder
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
def partialComparison(x: Interval[A], y: Interval[A]): 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
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