scala.math.Ordering

BooleanOrdering

trait BooleanOrdering extends Ordering[Boolean]

known subclasses: Boolean

Inherits

  1. Ordering
  2. PartialOrdering
  3. Equiv
  4. Comparator
  5. AnyRef
  6. Any

Type Members

  1. class Ops extends AnyRef

Value Members

  1. def compare(x: Boolean, y: Boolean): Int

    Returns a negative integer iff x comes before y in the ordering, returns 0 iff x is the same in the ordering as y, and returns a positive number iff x comes after y in the ordering

  2. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence

  3. def equiv(x: Boolean, y: Boolean): Boolean

    Returns true iff x is equivalent to y in the ordering

  4. def gt(x: Boolean, y: Boolean): Boolean

    Returns true iff y comes before x in the ordering and is not the same as x

  5. def gteq(x: Boolean, y: Boolean): Boolean

    Returns true iff y comes before x in the ordering

  6. def hashCode(): Int

    Returns a hash code value for the object

  7. def lt(x: Boolean, y: Boolean): Boolean

    Returns true iff x comes before y in the ordering and is not the same as y

  8. def lteq(x: Boolean, y: Boolean): Boolean

    Returns true iff x comes before y in the ordering

  9. def max(x: Boolean, y: Boolean): Boolean

    Returns the argument which comes later in the ordering

  10. def min(x: Boolean, y: Boolean): Boolean

    Returns the argument which comes earlier in the ordering

  11. def mkOrderingOps(lhs: Boolean): Ops

  12. def on[U](f: (U) ⇒ Boolean): Ordering[U]

    Given a function U => T, creates Ordering[U]

  13. def reverse: Ordering[Boolean]

  14. def toString(): String

    Returns a string representation of the object

  15. def tryCompare(x: Boolean, y: Boolean): Some[Int]

    An Ordering is defined at all x and y