object MathUtils

Helper functions for arithmetic operations with overflow.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MathUtils
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addExact(a: Long, b: Long, context: QueryContext): Long
  5. def addExact(a: Long, b: Long): Long
  6. def addExact(a: Int, b: Int, context: QueryContext): Int
  7. def addExact(a: Int, b: Int): Int
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. def floorDiv(a: Long, b: Long): Long
  13. def floorDiv(a: Int, b: Int): Int
  14. def floorMod(a: Long, b: Long): Long
  15. def floorMod(a: Int, b: Int): Int
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def multiplyExact(a: Long, b: Long, context: QueryContext): Long
  20. def multiplyExact(a: Long, b: Long): Long
  21. def multiplyExact(a: Int, b: Int, context: QueryContext): Int
  22. def multiplyExact(a: Int, b: Int): Int
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. def negateExact(a: Long): Long
  25. def negateExact(a: Int): Int
  26. def negateExact(a: Short): Short
  27. def negateExact(a: Byte): Byte
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  30. def subtractExact(a: Long, b: Long, context: QueryContext): Long
  31. def subtractExact(a: Long, b: Long): Long
  32. def subtractExact(a: Int, b: Int, context: QueryContext): Int
  33. def subtractExact(a: Int, b: Int): Int
  34. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  35. def toIntExact(a: Long): Int
  36. def toString(): String
    Definition Classes
    AnyRef → Any
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. def withOverflow[A](f: => A, hint: String = "", context: QueryContext = null): A
  41. def withOverflowCode(evalCode: String, context: String): String

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped