public interface Money
| Modifier and Type | Method and Description |
|---|---|
static MoneyBuilder |
builder() |
static MoneyBuilder |
builder(Money template) |
@NotNull Long |
getCentAmount() |
@NotNull String |
getCurrencyCode()
The currency code compliant to ISO 4217.
|
static Money |
of() |
static Money |
of(Money template) |
void |
setCentAmount(Long centAmount) |
void |
setCurrencyCode(String currencyCode) |
default <T> T |
withMoney(Function<Money,T> helper) |
@NotNull @NotNull Long getCentAmount()
void setCentAmount(Long centAmount)
void setCurrencyCode(String currencyCode)
static Money of()
static MoneyBuilder builder()
static MoneyBuilder builder(Money template)