From a7217b563a93263a64d0f711bd8854f07fdeb62d Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Mon, 8 Feb 2021 21:36:34 +0700 Subject: [PATCH] Add comments for money object --- src/main/kotlin/com/cubetiqs/money/MoneyObject.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/kotlin/com/cubetiqs/money/MoneyObject.kt b/src/main/kotlin/com/cubetiqs/money/MoneyObject.kt index 2f38cdf..f59fa97 100644 --- a/src/main/kotlin/com/cubetiqs/money/MoneyObject.kt +++ b/src/main/kotlin/com/cubetiqs/money/MoneyObject.kt @@ -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 {