SetPartialOrder

class SetPartialOrder[A] extends PartialOrder[Set[A]]
trait PartialOrder[Set[A]]
trait Eq[Set[A]]
trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

override def eqv(x: Set[A], y: Set[A]): Boolean
Definition Classes
def partialCompare(x: Set[A], y: Set[A]): Double

Inherited methods

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

Returns true if x > y, false otherwise.

Returns true if x > y, false otherwise.

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

Returns true if x >= y, false otherwise.

Returns true if x >= y, false otherwise.

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

Returns true if x < y, false otherwise.

Returns true if x < y, false otherwise.

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

Returns true if x <= y, false otherwise.

Returns true if x <= y, false otherwise.

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