scala.math

Numeric

trait Numeric[T] extends Ordering[T]

go to: companion
known subclasses: DoubleIsConflicted, Integral, Fractional, BigDecimalIsConflicted
source: Numeric.scala
Inherited
  1. Hide All
  2. Show all
  1. Ordering
  2. PartialOrdering
  3. Equiv
  4. Comparator
  5. AnyRef
  6. Any
Visibility
  1. Public
  2. All

Type Members

  1. class Ops extends AnyRef

Value Members

  1. def !=(arg0: AnyRef): Boolean

  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

  3. def ##(): Int

  4. def $asInstanceOf[T0](): T0

  5. def $isInstanceOf[T0](): Boolean

  6. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

  7. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

  8. def abs(x: T): T

  9. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

  10. def clone(): AnyRef

    This method creates and returns a copy of the receiver object.

  11. def compare(x: T, y: T): Int

    Returns a negative integer iff x comes beforey in the ordering, returns 0 iff xis the same in the ordering as y, and returns a positive number iff x comes aftery in the ordering.

  12. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

  13. def equals(arg0: Any): Boolean

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

  14. def equiv(x: T, y: T): Boolean

    Returns true iff x is equivalent to y in the ordering.

  15. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

  16. def fromInt(x: Int): T

  17. def getClass(): java.lang.Class[_ <: java.lang.Object]

    Returns a representation that corresponds to the dynamic class of the receiver object.

  18. def gt(x: T, y: T): Boolean

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

  19. def gteq(x: T, y: T): Boolean

    Returns true iff y comes before x in the ordering.

  20. def hashCode(): Int

    Returns a hash code value for the object.

  21. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

  22. def lt(x: T, y: T): Boolean

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

  23. def lteq(x: T, y: T): Boolean

    Returns true iff x comes before y in the ordering.

  24. def max(x: T, y: T): T

    Returns the argument which comes later in the ordering.

  25. def min(x: T, y: T): T

    Returns the argument which comes earlier in the ordering.

  26. def minus(x: T, y: T): T

  27. implicit def mkNumericOps(lhs: T): Ops

  28. implicit def mkOrderingOps(lhs: T): Ops

  29. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

  30. def negate(x: T): T

  31. def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

  32. def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

  33. def on[U](f: (U) ⇒ T): Ordering[U]

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

  34. def one: T

  35. def plus(x: T, y: T): T

  36. def reverse: Ordering[T]

  37. def signum(x: T): Int

  38. def synchronized[T0](arg0: T0): T0

  39. def times(x: T, y: T): T

  40. def toDouble(x: T): Double

  41. def toFloat(x: T): Float

  42. def toInt(x: T): Int

  43. def toLong(x: T): Long

  44. def toString(): String

    Returns a string representation of the object.

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

    An Ordering is defined at all x and y.

  46. def wait(): Unit

  47. def wait(arg0: Long, arg1: Int): Unit

  48. def wait(arg0: Long): Unit

  49. def zero: T