add

open override fun add(other: MonetaryAmount?): Geldbetrag

Liefert die Summe mit dem anderen Gelbetrag zurueck. Vorausgesetzt, beide Betraege haben die gleichen Waehrungen. Einzige Ausnahem davon ist die Addition von 0, da hier die Waehrung egal ist (neutrale Operation).

Return

this + amount

Parameters

other

value to be added to this MonetaryAmount.

Throws

if the result exceeds the numeric capabilities of this implementation class, i.e. the MonetaryContext cannot be adapted as required.