Double.G.Math.Ordering

trait Ordering[A <: Raw.Double] extends Math.Ordering[A]
trait Math.Ordering[A]
trait scala.Ordering[A]
trait scala.math.PartialOrdering[A]
trait scala.math.Equiv[A]
trait java.io.Serializable
trait java.util.Comparator[A]
class java.lang.Object
trait scala.Matchable
class Any
class Double.G.Math[A]

Def

@scala.annotation.targetName("_join")
def +(c: scala.Ordering[A]): scala.Ordering[A]

Alias for join

Alias for join

Creates a new Ordering, which will order elements based on this Ordering, and if they appear equal, on joined Ordering

Inherited from
Ordering
Source
__.scala
def compare(x: A, y: A): Int
def join(c: scala.Ordering[A]): scala.Ordering[A]

Join

Join

Creates a new Ordering, which will order elements based on this Ordering, and if they appear equal, on joined Ordering

Inherited from
Ordering
Source
__.scala
override def on[U](f: U => A): scala.Ordering[U]

On type

On type

Creates an ordering on specified type. The mapping function from specified type to current type must be provided.

 val stringOrdering = Ordering[String]

 val intOrdering = stringOrdering.on[Int](i => i.toString)
Definition Classes
Ordering -> Ordering
Inherited from
Ordering
Source
__.scala
@scala.annotation.targetName("opt_View")
def opt_^(voidPosition: Int): scala.Ordering[Opt[A]]

Opt view

Opt view

Creates an ordering to sort Opt values of current type.

Inherited from
Ordering
Source
__.scala
@scala.annotation.targetName("rank_View")
def rank_^(fun: A => Int): scala.Ordering[A]

Ranked view

Ranked view

Creates an ordering, where all elements are first ordered on rank (defined with given function) and than on merit.

Inherited from
Ordering
Source
__.scala

Reversed ordering

Reversed ordering

Returns ordering with reversed order

Definition Classes
Ordering -> Ordering -> PartialOrdering
Source
Math.scala
@scala.annotation.targetName("voidFirst_View")
def voidFirst_^(using Given.VoidTag[A]): scala.Ordering[A]

Void first view

Void first view

Creates an ordering, where all void elements will come first.

Inherited from
Ordering
Source
__.scala
@scala.annotation.targetName("voidLast_View")
def voidLast_^(using Given.VoidTag[A]): scala.Ordering[A]

Void last view

Void last view

Creates an ordering, where all void elements will come last.

Inherited from
Ordering
Source
__.scala

Implicit

Inherited from
Ordering