Packages

implicit object Double extends DoubleOrdering

Source
Ordering.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Double
  2. DoubleOrdering
  3. Ordering
  4. PartialOrdering
  5. Equiv
  6. Serializable
  7. Serializable
  8. Comparator
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class Ops extends AnyRef

    This inner class defines comparison operators available for T.

    This inner class defines comparison operators available for T.

    Definition Classes
    Ordering

Value Members

  1. def compare(x: Double, y: Double): Int

    Returns an integer whose sign communicates how x compares to y.

    Returns an integer whose sign communicates how x compares to y.

    The result sign has the following meaning:

    • negative if x < y
    • positive if x > y
    • zero otherwise (if x == y)
    Definition Classes
    DoubleOrderingOrdering → Comparator
  2. def equiv(x: Double, y: Double): Boolean

    Return true if x == y in the ordering.

    Return true if x == y in the ordering.

    Definition Classes
    DoubleOrderingOrderingPartialOrderingEquiv
  3. def gt(x: Double, y: Double): Boolean

    Return true if x > y in the ordering.

    Return true if x > y in the ordering.

    Definition Classes
    DoubleOrderingOrderingPartialOrdering
  4. def gteq(x: Double, y: Double): Boolean

    Return true if x >= y in the ordering.

    Return true if x >= y in the ordering.

    Definition Classes
    DoubleOrderingOrderingPartialOrdering
  5. def lt(x: Double, y: Double): Boolean

    Return true if x < y in the ordering.

    Return true if x < y in the ordering.

    Definition Classes
    DoubleOrderingOrderingPartialOrdering
  6. def lteq(x: Double, y: Double): Boolean

    Return true if x <= y in the ordering.

    Return true if x <= y in the ordering.

    Definition Classes
    DoubleOrderingOrderingPartialOrdering
  7. def max(x: Double, y: Double): Double

    Return x if x >= y, otherwise y.

    Return x if x >= y, otherwise y.

    Definition Classes
    DoubleOrderingOrdering
  8. def min(x: Double, y: Double): Double

    Return x if x <= y, otherwise y.

    Return x if x <= y, otherwise y.

    Definition Classes
    DoubleOrderingOrdering
  9. implicit def mkOrderingOps(lhs: Double): Ops

    This implicit method augments T with the comparison operators defined in scala.math.Ordering.Ops.

    This implicit method augments T with the comparison operators defined in scala.math.Ordering.Ops.

    Definition Classes
    Ordering
  10. def on[U](f: (U) ⇒ Double): Ordering[U]

    Given f, a function from U into T, creates an Ordering[U] whose compare function is equivalent to:

    Given f, a function from U into T, creates an Ordering[U] whose compare function is equivalent to:

    def compare(x:U, y:U) = Ordering[T].compare(f(x), f(y))
    Definition Classes
    Ordering
  11. def reverse: Ordering[Double]

    Return the opposite ordering of this one.

    Return the opposite ordering of this one.

    Definition Classes
    DoubleOrderingOrderingPartialOrdering
  12. def reversed(): Comparator[Double]
    Definition Classes
    Comparator
  13. def thenComparing[U <: Comparable[_ >: U]](arg0: java.util.function.Function[_ >: Double, _ <: U]): Comparator[Double]
    Definition Classes
    Comparator
  14. def thenComparing[U](arg0: java.util.function.Function[_ >: Double, _ <: U], arg1: Comparator[_ >: U]): Comparator[Double]
    Definition Classes
    Comparator
  15. def thenComparing(arg0: Comparator[_ >: Double]): Comparator[Double]
    Definition Classes
    Comparator
  16. def thenComparingDouble(arg0: ToDoubleFunction[_ >: Double]): Comparator[Double]
    Definition Classes
    Comparator
  17. def thenComparingInt(arg0: ToIntFunction[_ >: Double]): Comparator[Double]
    Definition Classes
    Comparator
  18. def thenComparingLong(arg0: ToLongFunction[_ >: Double]): Comparator[Double]
    Definition Classes
    Comparator
  19. def tryCompare(x: Double, y: Double): Some[Int]

    Returns whether a comparison between x and y is defined, and if so the result of compare(x, y).

    Returns whether a comparison between x and y is defined, and if so the result of compare(x, y).

    Definition Classes
    OrderingPartialOrdering