cats.kernel.instances

ListOrder

class ListOrder[A] extends Order[List[A]]

Linear Supertypes
Order[List[A]], PartialOrder[List[A]], Eq[List[A]], Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ListOrder
  2. Order
  3. PartialOrder
  4. Eq
  5. Serializable
  6. Serializable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ListOrder()(implicit ev: Order[A])

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def and(that: Eq[List[A]]): Eq[List[A]]

    Return an Eq that gives the result of the and of this and that note this is idempotent

    Return an Eq that gives the result of the and of this and that note this is idempotent

    Definition Classes
    Eq
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def compare(xs: List[A], ys: List[A]): Int

    Result of comparing x with y.

    Result of comparing x with y. Returns an Int whose sign is: - negative iff x < y - zero iff x = y - positive iff x > y

    Definition Classes
    ListOrderOrder
  10. def comparison(x: List[A], y: List[A]): Comparison

    Like compare, but returns a cats.kernel.Comparison instead of an Int.

    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.

    Definition Classes
    Order
  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def eqv(x: List[A], y: List[A]): Boolean

    Returns true if x = y, false otherwise.

    Returns true if x = y, false otherwise.

    Definition Classes
    OrderPartialOrderEq
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. def gt(x: List[A], y: List[A]): Boolean

    Returns true if x > y, false otherwise.

    Returns true if x > y, false otherwise.

    Definition Classes
    OrderPartialOrder
  17. def gteqv(x: List[A], y: List[A]): Boolean

    Returns true if x >= y, false otherwise.

    Returns true if x >= y, false otherwise.

    Definition Classes
    OrderPartialOrder
  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. def lt(x: List[A], y: List[A]): Boolean

    Returns true if x < y, false otherwise.

    Returns true if x < y, false otherwise.

    Definition Classes
    OrderPartialOrder
  21. def lteqv(x: List[A], y: List[A]): Boolean

    Returns true if x <= y, false otherwise.

    Returns true if x <= y, false otherwise.

    Definition Classes
    OrderPartialOrder
  22. def max(x: List[A], y: List[A]): List[A]

    If x >= y, return x, else return y.

    If x >= y, return x, else return y.

    Definition Classes
    Order
  23. def min(x: List[A], y: List[A]): List[A]

    If x <= y, return x, else return y.

    If x <= y, return x, else return y.

    Definition Classes
    Order
  24. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. def neqv(x: List[A], y: List[A]): Boolean

    Returns true if x != y, false otherwise.

    Returns true if x != y, false otherwise.

    Definition Classes
    OrderEq
  26. final def notify(): Unit

    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  28. def on[B](f: (B) ⇒ List[A]): Order[B]

    Defines an order on B by mapping B to A using f and using As order to order B.

    Defines an order on B by mapping B to A using f and using As order to order B.

    Definition Classes
    OrderPartialOrderEq
  29. def or(that: Eq[List[A]]): Eq[List[A]]

    Return an Eq that gives the result of the or of this and that Note this is idempotent

    Return an Eq that gives the result of the or of this and that Note this is idempotent

    Definition Classes
    Eq
  30. def partialCompare(x: List[A], y: List[A]): Double

    Result of comparing x with y.

    Result of comparing x with y. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is: - negative iff x < y - zero iff x = y - positive iff x > y

    Definition Classes
    OrderPartialOrder
  31. def partialComparison(x: List[A], y: List[A]): Option[Comparison]

    Like partialCompare, but returns a cats.kernel.Comparison instead of an Double.

    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.

    Definition Classes
    PartialOrder
  32. def pmax(x: List[A], y: List[A]): Option[List[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.

    Definition Classes
    PartialOrder
  33. def pmin(x: List[A], y: List[A]): Option[List[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.

    Definition Classes
    PartialOrder
  34. def reverse: Order[List[A]]

    Defines an ordering on A where all arrows switch direction.

    Defines an ordering on A where all arrows switch direction.

    Definition Classes
    OrderPartialOrder
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  36. def toOrdering: Ordering[List[A]]

    Convert a Order[A] to a scala.math.Ordering[A] instance.

    Convert a Order[A] to a scala.math.Ordering[A] instance.

    Definition Classes
    Order
  37. def toString(): String

    Definition Classes
    AnyRef → Any
  38. def tryCompare(x: List[A], y: List[A]): Option[Int]

    Result of comparing x with y.

    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

    Definition Classes
    PartialOrder
  39. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. def whenEqual(o: Order[List[A]]): Order[List[A]]

    Returns a new Order[A] instance that first compares by the original Order instance and uses the provided Order instance to "break ties".

    Returns a new Order[A] instance that first compares by the original Order instance and uses the provided Order instance to "break ties".

    That is, x.whenEqual(y) creates an Order that first orders by x and then (if two elements are equal) falls back to y for the comparison.

    Definition Classes
    Order

Inherited from Order[List[A]]

Inherited from PartialOrder[List[A]]

Inherited from Eq[List[A]]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped