scala.concurrent.duration.FiniteDuration
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:
Return true if x
== y
in the ordering.
Return true if x
== y
in the ordering.
Return true if x
> y
in the ordering.
Return true if x
> y
in the ordering.
Return true if x
>= y
in the ordering.
Return true if x
>= y
in the ordering.
Return true if x
< y
in the ordering.
Return true if x
< y
in the ordering.
Return true if x
<= y
in the ordering.
Return true if x
<= y
in the ordering.
Return x
if x
>= y
, otherwise y
.
Return x
if x
>= y
, otherwise y
.
Return x
if x
<= y
, otherwise y
.
Return x
if x
<= y
, otherwise y
.
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
.
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))
Return the opposite ordering of this one.
Return the opposite ordering of this one.
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)
.