scala.math.Ordering

IntOrdering

trait IntOrdering extends Ordering[Int]

known subclasses: Int, IntIsIntegral

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: Int, y: Int): 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: Int, y: Int): Boolean

    Returns true iff x is equivalent to y in the ordering

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

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

  5. def gteq(x: Int, y: Int): 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: Int, y: Int): Boolean

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

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

    Returns true iff x comes before y in the ordering

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

    Returns the argument which comes later in the ordering

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

    Returns the argument which comes earlier in the ordering

  11. def mkOrderingOps(lhs: Int): Ops

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

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

  13. def reverse: Ordering[Int]

  14. def toString(): String

    Returns a string representation of the object

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

    An Ordering is defined at all x and y