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(Long amount,
String currency)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Long |
getAmount()
Getter for Amount.
|
String |
getCurrency()
Getter for Currency.
|
int |
hashCode() |
Money.Builder |
toBuilder()
Builds a new
Money.Builder object. |
String |
toString()
Converts this Money into string format.
|
public Long getAmount()
public String getCurrency()
public String toString()
public Money.Builder toBuilder()
Money.Builder object.
Creates the instance with the state of the current model.Money.Builder objectCopyright © 2022. All rights reserved.