Scala Standard Library 2.12.18 - scala.math.Numeric (original) (raw)
trait Numeric[T] extends Ordering[T]
Ordering
- Alphabetic
- By Inheritance
Inherited
- Numeric
- Ordering
- PartialOrdering
- Equiv
- Serializable
- Serializable
- Comparator
- AnyRef
- Any
Implicitly
by any2stringadd
by StringFormat
by Ensuring
by ArrowAssoc
Hide All
Show All
Abstract Value Members
- abstract def compare(x: T, y: T): Int
- abstract def fromInt(x: Int): T
- abstract def minus(x: T, y: T): T
- abstract def negate(x: T): T
- abstract def plus(x: T, y: T): T
- abstract def times(x: T, y: T): T
- abstract def toDouble(x: T): Double
- abstract def toFloat(x: T): Float
- abstract def toInt(x: T): Int
- abstract def toLong(x: T): Long
Concrete Value Members
- final def !=(arg0: Any): Boolean
- final def ##(): Int
- def +(other: String): String
- def ->[B](y: B): (Numeric[T], B)
- final def ==(arg0: Any): Boolean
- def abs(x: T): T
- final def asInstanceOf[T0]: T0
- def clone(): AnyRef
- def ensuring(cond: (Numeric[T]) ⇒ Boolean, msg: ⇒ Any): Numeric[T]
- def ensuring(cond: (Numeric[T]) ⇒ Boolean): Numeric[T]
- def ensuring(cond: Boolean, msg: ⇒ Any): Numeric[T]
- def ensuring(cond: Boolean): Numeric[T]
- final def eq(arg0: AnyRef): Boolean
- def equals(arg0: Any): Boolean
- def equiv(x: T, y: T): Boolean
- def finalize(): Unit
- final def getClass(): Class[_]
- def gt(x: T, y: T): Boolean
- def gteq(x: T, y: T): Boolean
- def hashCode(): Int
- final def isInstanceOf[T0]: Boolean
- def lt(x: T, y: T): Boolean
- def lteq(x: T, y: T): Boolean
- def max(x: T, y: T): T
- def min(x: T, y: T): T
- implicit def mkNumericOps(lhs: T): Ops
- implicit def mkOrderingOps(lhs: T): Numeric.Ops
- final def ne(arg0: AnyRef): Boolean
- final def notify(): Unit
- final def notifyAll(): Unit
- def on[U](f: (U) ⇒ T): Ordering[U]
- def one: T
- def reverse: Ordering[T]
- def reversed(): Comparator[T]
- def signum(x: T): Int
- final def synchronized[T0](arg0: ⇒ T0): T0
- def thenComparing[U <: Comparable[_ >: U]](arg0: java.util.function.Function[_ >: T, _ <: U]): Comparator[T]
- def thenComparing[U](arg0: java.util.function.Function[_ >: T, _ <: U], arg1: Comparator[_ >: U]): Comparator[T]
- def thenComparing(arg0: Comparator[_ >: T]): Comparator[T]
- def thenComparingDouble(arg0: ToDoubleFunction[_ >: T]): Comparator[T]
- def thenComparingInt(arg0: ToIntFunction[_ >: T]): Comparator[T]
- def thenComparingLong(arg0: ToLongFunction[_ >: T]): Comparator[T]
- def toString(): String
- def tryCompare(x: T, y: T): Some[Int]
- final def wait(): Unit
- final def wait(arg0: Long, arg1: Int): Unit
- final def wait(arg0: Long): Unit
- def zero: T
- def →[B](y: B): (Numeric[T], B)