tuweni / org.apache.tuweni.units.bigints / UInt64Value / addExact

addExact

open fun addExact(value: T): T (source)

Returns a value that is (this + value).

Parameters

value - T: the amount to be added to this value

Exceptions

ArithmeticException - if the result of the addition overflows

Return
T: this + value

open fun addExact(value: Long): T (source)

Returns a value that is (this + value).

Parameters

value - Long: the amount to be added to this value

Exceptions

ArithmeticException - if the result of the addition overflows

Return
T: this + value