sealed trait Ordering extends PartialOrdering
An Ordering
is the result of comparing two values. The result may be
LessThan
, Equals
, or GreaterThan
.
- Self Type
- Ordering
- Alphabetic
- By Inheritance
- Ordering
- PartialOrdering
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
Concrete Value Members
- final def <>(that: => Ordering): Ordering
A symbolic alias for
orElse
. - final def <>(that: => PartialOrdering): PartialOrdering
A symbolic alias for
orElse
.A symbolic alias for
orElse
.- Definition Classes
- PartialOrdering
- final def isEqual: Boolean
Returns whether this
Ordering
isOrdering.Equals
.Returns whether this
Ordering
isOrdering.Equals
.- Definition Classes
- PartialOrdering
- final def isGreaterThan: Boolean
Returns whether this
Ordering
isOrdering.GreaterThan
.Returns whether this
Ordering
isOrdering.GreaterThan
.- Definition Classes
- PartialOrdering
- final def isLessThan: Boolean
Returns whether this
Ordering
isOrdering.LessThan
.Returns whether this
Ordering
isOrdering.LessThan
.- Definition Classes
- PartialOrdering
- final def opposite: Ordering
Returns the opposite of this
Ordering
, withLessThan
converted toGreaterThan
andGreaterThan
converted toLessThan
. - final def orElse(that: => Ordering): Ordering
Returns this ordering, but if this ordering is equal returns the specified ordering.
- final def orElse(that: => PartialOrdering): PartialOrdering
Returns this ordering, but if this ordering is equal returns the specified ordering.
Returns this ordering, but if this ordering is equal returns the specified ordering.
- Definition Classes
- PartialOrdering
- final def ordinal: Int
Converts this
Ordering
to an ordinal representation, with0
representingLessThan
,1
representingEquals
and2
representingGreaterThan
. - def productElementName(n: Int): String
- Definition Classes
- Product
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def productIterator: Iterator[Any]
- Definition Classes
- Product
- def productPrefix: String
- Definition Classes
- Product
- def unify(that: PartialOrdering): PartialOrdering
- Definition Classes
- PartialOrdering