public class Money extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Money.Builder
Class to build instances of
Money. |
| Constructor and Description |
|---|
Money()
Default constructor.
|
Money(String currencyCode,
String value)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCurrencyCode()
Getter for CurrencyCode.
|
String |
getValue()
Getter for Value.
|
void |
setCurrencyCode(String currencyCode)
Setter for CurrencyCode.
|
void |
setValue(String value)
Setter for Value.
|
Money.Builder |
toBuilder()
Builds a new
Money.Builder object. |
String |
toString()
Converts this Money into string format.
|
public String getCurrencyCode()
public void setCurrencyCode(String currencyCode)
currencyCode - Value for Stringpublic String getValue()
public void setValue(String value)
value - Value for Stringpublic String toString()
public Money.Builder toBuilder()
Money.Builder object.
Creates the instance with the state of the current model.Money.Builder objectCopyright © 2025. All rights reserved.