Class

cats.kernel.instances

ListOrder

Related Doc: package instances

Permalink

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
Visibility
  1. Public
  2. All

Instance Constructors

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

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def and(that: Eq[List[A]]): Eq[List[A]]

    Permalink

    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
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

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

    Permalink

    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
  8. def comparison(x: List[A], y: List[A]): Comparison

    Permalink

    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
  9. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink

    Returns true if x = y, false otherwise.

    Returns true if x = y, false otherwise.

    Definition Classes
    OrderPartialOrderEq
  12. def finalize(): Unit

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

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

    Permalink

    Returns true if x > y, false otherwise.

    Returns true if x > y, false otherwise.

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

    Permalink

    Returns true if x >= y, false otherwise.

    Returns true if x >= y, false otherwise.

    Definition Classes
    OrderPartialOrder
  16. def hashCode(): Int

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

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

    Permalink

    Returns true if x < y, false otherwise.

    Returns true if x < y, false otherwise.

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

    Permalink

    Returns true if x <= y, false otherwise.

    Returns true if x <= y, false otherwise.

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

    Permalink

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

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

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

    Permalink

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

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

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

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

    Permalink

    Returns true if x != y, false otherwise.

    Returns true if x != y, false otherwise.

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

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

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

    Permalink

    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
  27. def or(that: Eq[List[A]]): Eq[List[A]]

    Permalink

    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
  28. def partialCompare(x: List[A], y: List[A]): Double

    Permalink

    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
  29. def partialComparison(x: List[A], y: List[A]): Option[Comparison]

    Permalink

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

    Permalink

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

    Permalink

    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
  32. def reverse: Order[List[A]]

    Permalink

    Defines an ordering on A where all arrows switch direction.

    Defines an ordering on A where all arrows switch direction.

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

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

    Permalink

    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
  35. def toString(): String

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

    Permalink

    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
  37. final def wait(): Unit

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

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

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

    Permalink

    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