Add comments for money object

This commit is contained in:
Sambo Chea 2021-02-08 21:36:34 +07:00
parent 1b7c7000bb
commit a7217b563a

View File

@ -11,7 +11,11 @@ import java.util.*
class MoneyObject(
private var value: Double,
private var currency: String,
// operator, used with "with" below
// example: if we have next we will use this operator to compute the value with
var operator: MoneyOperator? = null,
// the value to compute with current object
var with: MoneyObject? = null,
) : StdMoney {
override fun getCurrency(): StdMoney.Currency {