An Ordering is the result of comparing two values. The result may be LessThan, Equals, or GreaterThan.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait PartialOrderingtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- Known subtypes
- Self type
Members list
Value members
Concrete methods
A symbolic alias for orElse.
A symbolic alias for orElse.
Attributes
Returns the opposite of this Ordering, with LessThan converted to GreaterThan and GreaterThan converted to LessThan.
Returns the opposite of this Ordering, with LessThan converted to GreaterThan and GreaterThan converted to LessThan.
Attributes
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.
Attributes
Converts this Ordering to an ordinal representation, with 0 representing LessThan, 1 representing Equals and 2 representing GreaterThan.
Converts this Ordering to an ordinal representation, with 0 representing LessThan, 1 representing Equals and 2 representing GreaterThan.
Attributes
Inherited methods
A symbolic alias for orElse.
Returns whether this Ordering is Ordering.Equals.
Returns whether this Ordering is Ordering.GreaterThan.
Returns whether this Ordering is Ordering.LessThan.
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.
Attributes
- Inherited from:
- PartialOrdering
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- PartialOrdering