Packages

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
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Ordering
  2. PartialOrdering
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def canEqual(that: Any): Boolean
    Definition Classes
    Equals
  2. abstract def productArity: Int
    Definition Classes
    Product
  3. abstract def productElement(n: Int): Any
    Definition Classes
    Product

Concrete Value Members

  1. final def <>(that: => Ordering): Ordering

    A symbolic alias for orElse.

  2. final def <>(that: => PartialOrdering): PartialOrdering

    A symbolic alias for orElse.

    A symbolic alias for orElse.

    Definition Classes
    PartialOrdering
  3. final def isEqual: Boolean

    Returns whether this Ordering is Ordering.Equals.

    Returns whether this Ordering is Ordering.Equals.

    Definition Classes
    PartialOrdering
  4. final def isGreaterThan: Boolean

    Returns whether this Ordering is Ordering.GreaterThan.

    Returns whether this Ordering is Ordering.GreaterThan.

    Definition Classes
    PartialOrdering
  5. final def isLessThan: Boolean

    Returns whether this Ordering is Ordering.LessThan.

    Returns whether this Ordering is Ordering.LessThan.

    Definition Classes
    PartialOrdering
  6. final def opposite: Ordering

    Returns the opposite of this Ordering, with LessThan converted to GreaterThan and GreaterThan converted to LessThan.

  7. final def orElse(that: => Ordering): Ordering

    Returns this ordering, but if this ordering is equal returns the specified ordering.

  8. 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
  9. final def ordinal: Int

    Converts this Ordering to an ordinal representation, with 0 representing LessThan, 1 representing Equals and 2 representing GreaterThan.

  10. def productElementName(n: Int): String
    Definition Classes
    Product
  11. def productElementNames: Iterator[String]
    Definition Classes
    Product
  12. def productIterator: Iterator[Any]
    Definition Classes
    Product
  13. def productPrefix: String
    Definition Classes
    Product
  14. def unify(that: PartialOrdering): PartialOrdering
    Definition Classes
    PartialOrdering