Scala Standard Library 2.13.15 - scala.math.Numeric (original) (raw)

trait Numeric[T] extends Ordering[T]

Ordering

  1. Alphabetic
  2. By Inheritance

Inherited

  1. Numeric
  2. Ordering
  3. PartialOrdering
  4. Equiv
  5. Serializable
  6. Comparator
  7. AnyRef
  8. Any

Implicitly

  1. by any2stringadd

  2. by StringFormat

  3. by Ensuring

  4. by ArrowAssoc

  5. Hide All

  6. Show All

Visibility

  1. Public
  2. Protected

Abstract Value Members

  1. abstract def compare(x: T, y: T): Int
  2. abstract def fromInt(x: Int): T
  3. abstract def minus(x: T, y: T): T
  4. abstract def negate(x: T): T
  5. abstract def parseString(str: String): Option[T]
  6. abstract def plus(x: T, y: T): T
  7. abstract def times(x: T, y: T): T
  8. abstract def toDouble(x: T): Double
  9. abstract def toFloat(x: T): Float
  10. abstract def toInt(x: T): Int
  11. abstract def toLong(x: T): Long

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
  2. final def ##: Int
  3. def +(other: String): String
  4. def ->[B](y: B): (Numeric[T], B)
  5. final def ==(arg0: Any): Boolean
  6. def abs(x: T): T
  7. final def asInstanceOf[T0]: T0
  8. def clone(): AnyRef
  9. def ensuring(cond: (Numeric[T]) => Boolean, msg: => Any): Numeric[T]
  10. def ensuring(cond: (Numeric[T]) => Boolean): Numeric[T]
  11. def ensuring(cond: Boolean, msg: => Any): Numeric[T]
  12. def ensuring(cond: Boolean): Numeric[T]
  13. final def eq(arg0: AnyRef): Boolean
  14. def equals(arg0: AnyRef): Boolean
  15. def equiv(x: T, y: T): Boolean
  16. def finalize(): Unit
  17. final def getClass(): Class[_ <: AnyRef]
  18. def gt(x: T, y: T): Boolean
  19. def gteq(x: T, y: T): Boolean
  20. def hashCode(): Int
  21. final def isInstanceOf[T0]: Boolean
  22. def isReverseOf(other: Ordering[_]): Boolean
  23. def lt(x: T, y: T): Boolean
  24. def lteq(x: T, y: T): Boolean
  25. def max[U <: T](x: U, y: U): U
  26. def min[U <: T](x: U, y: U): U
  27. implicit def mkNumericOps(lhs: T): NumericOps
  28. implicit def mkOrderingOps(lhs: T): OrderingOps
  29. final def ne(arg0: AnyRef): Boolean
  30. final def notify(): Unit
  31. final def notifyAll(): Unit
  32. def on[U](f: (U) => T): Ordering[U]
  33. def one: T
  34. def orElse(other: Ordering[T]): Ordering[T]
  35. def orElseBy[S](f: (T) => S)(implicit ord: Ordering[S]): Ordering[T]
  36. def reverse: Ordering[T]
  37. def reversed(): Comparator[T]
  38. def sign(x: T): T
  39. final def synchronized[T0](arg0: => T0): T0
  40. def thenComparing[U <: Comparable[_ >: U <: AnyRef]](arg0: java.util.function.Function[_ >: T <: AnyRef, _ <: U]): Comparator[T]
  41. def thenComparing[U <: AnyRef](arg0: java.util.function.Function[_ >: T <: AnyRef, _ <: U], arg1: Comparator[_ >: U <: AnyRef]): Comparator[T]
  42. def thenComparing(arg0: Comparator[_ >: T <: AnyRef]): Comparator[T]
  43. def thenComparingDouble(arg0: ToDoubleFunction[_ >: T <: AnyRef]): Comparator[T]
  44. def thenComparingInt(arg0: ToIntFunction[_ >: T <: AnyRef]): Comparator[T]
  45. def thenComparingLong(arg0: ToLongFunction[_ >: T <: AnyRef]): Comparator[T]
  46. def toString(): String
  47. def tryCompare(x: T, y: T): Some[Int]
  48. final def wait(): Unit
  49. final def wait(arg0: Long, arg1: Int): Unit
  50. final def wait(arg0: Long): Unit
  51. def zero: T

Ungrouped