public class Money extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Money.Builder
Class to build instances of
Money. |
| Modifier | Constructor and Description |
|---|---|
|
Money(Long amount,
String currency)
Initialization constructor.
|
protected |
Money(io.apimatic.core.types.OptionalNullable<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() |
protected io.apimatic.core.types.OptionalNullable<Long> |
internalGetAmount()
Internal Getter for Amount.
|
Money.Builder |
toBuilder()
Builds a new
Money.Builder object. |
String |
toString()
Converts this Money into string format.
|
public Money(Long amount, String currency)
amount - Long value for amount.currency - String value for currency.protected io.apimatic.core.types.OptionalNullable<Long> internalGetAmount()
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 © 2024. All rights reserved.