tuweni / org.apache.tuweni.units.bigints / BaseUInt32Value / addMod

addMod

open fun addMod(value: T, modulus: UInt32!): T (source)
open fun addMod(value: Long, modulus: UInt32!): T (source)
open fun addMod(value: Long, modulus: Long): T (source) open fun addMod(value: UInt32!, modulus: UInt32!): T (source)

Returns a value equivalent to ((this + value) mod modulus).

Parameters

value - UInt32!: The amount to be added to this value.

modulus - UInt32!: The modulus.

Exceptions

ArithmeticException - modulus == 0.

Return
T: (this + value) mod modulus