open fun addExact(value: T): T
(source)
Returns a value that is (this + value)
.
value
- T: the amount to be added to this value
ArithmeticException
- if the result of the addition overflows
Return
T: this + value
open fun addExact(value: Int): T
(source)
Returns a value that is (this + value)
.
value
- Int: the amount to be added to this value
ArithmeticException
- if the result of the addition overflows
Return
T: this + value