-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class Amount implements Parcelable
This class serves for sending the extracted amount and currency in cleanup process.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classAmount.Companion
-
Field Summary
Fields Modifier and Type Field Description private final BigDecimalvalueprivate final AmountCurrencycurrency
-
Constructor Summary
Constructors Constructor Description Amount(BigDecimal value, AmountCurrency currency)Creates an instance of Amount class.
-
Method Summary
Modifier and Type Method Description final BigDecimalgetValue()final AmountCurrencygetCurrency()-
-
Constructor Detail
-
Amount
Amount(BigDecimal value, AmountCurrency currency)
Creates an instance of Amount class.- Parameters:
value- the number value of the amount.currency- the amount currency.
-
-
Method Detail
-
getValue
final BigDecimal getValue()
-
getCurrency
final AmountCurrency getCurrency()
-
-
-
-