abstract fun addMod(value: T, modulus: UInt32!): T
(source)
Returns a value equivalent to ((this + value) mod modulus)
.
value
- T: The amount to be added to this value.
modulus
- UInt32!: The modulus.
ArithmeticException
- modulus
== 0.
Return
T: (this + value) mod modulus
abstract fun addMod(value: Long, modulus: UInt32!): T
(source)
Returns a value equivalent to ((this + value) mod modulus)
.
value
- Long: The amount to be added to this value.
modulus
- UInt32!: The modulus.
ArithmeticException
- modulus
== 0.
Return
T: (this + value) mod modulus
abstract fun addMod(value: Long, modulus: Long): T
(source)
Returns a value equivalent to ((this + value) mod modulus)
.
value
- Long: The amount to be added to this value.
ArithmeticException
- modulus
≤ 0.
Return
T: (this + value) mod modulus