| Package | Description |
|---|---|
| org.javamoney.moneta |
Contains public core implementation artifacts, e.g.
|
| org.javamoney.moneta.spi |
Defines common base classes used for implementing SPIs and the
LoaderService. |
| Modifier and Type | Method and Description |
|---|---|
Money |
Money.abs() |
Money |
Money.add(MonetaryAmount amount) |
Money |
Money.divide(double divisor) |
Money |
Money.divide(long divisor) |
Money |
Money.divide(Number divisor) |
Money[] |
Money.divideAndRemainder(double divisor) |
Money[] |
Money.divideAndRemainder(long divisor) |
Money[] |
Money.divideAndRemainder(Number divisor) |
Money |
Money.divideToIntegralValue(double divisor) |
Money |
Money.divideToIntegralValue(long divisor) |
Money |
Money.divideToIntegralValue(Number divisor) |
static Money |
Money.from(MonetaryAmount amt)
Converts (if necessary) the given
MonetaryAmount to a
Money instance. |
Money |
Money.multiply(double multiplicand) |
Money |
Money.multiply(long multiplicand) |
Money |
Money.multiply(Number multiplicand) |
Money |
Money.negate() |
static Money |
Money.of(BigDecimal number,
CurrencyUnit currency)
Creates a new instance of
Money, using the default
MonetaryContext. |
static Money |
Money.of(BigDecimal number,
CurrencyUnit currency,
MonetaryContext monetaryContext)
Creates a new instance of
Money, using an explicit
MonetaryContext. |
static Money |
Money.of(BigDecimal number,
String currencyCode)
Static factory method for creating a new instance of
Money. |
static Money |
Money.of(BigDecimal number,
String currencyCode,
MonetaryContext monetaryContext)
Static factory method for creating a new instance of
Money. |
static Money |
Money.of(Number number,
CurrencyUnit currency)
Creates a new instance of
Money, using the default
MonetaryContext. |
static Money |
Money.of(Number number,
CurrencyUnit currency,
MonetaryContext monetaryContext)
Creates a new instance of
Money, using an explicit
MonetaryContext. |
static Money |
Money.of(Number number,
String currencyCode)
Static factory method for creating a new instance of
Money. |
static Money |
Money.of(Number number,
String currencyCode,
MonetaryContext monetaryContext)
Static factory method for creating a new instance of
Money. |
static Money |
Money.ofMinor(CurrencyUnit currency,
long amountMinor)
Obtains an instance of
Money from an amount in minor units. |
static Money |
Money.ofMinor(CurrencyUnit currency,
long amountMinor,
int factionDigits)
Obtains an instance of
Money from an amount in minor units. |
static Money |
Money.parse(CharSequence text)
Obtains an instance of Money from a text string such as 'EUR 25.25'.
|
static Money |
Money.parse(CharSequence text,
MonetaryAmountFormat formatter)
Obtains an instance of Money from a text using specific formatter.
|
Money |
Money.plus() |
Money |
Money.remainder(double divisor) |
Money |
Money.remainder(long divisor) |
Money |
Money.remainder(Number divisor) |
Money |
Money.scaleByPowerOfTen(int power) |
Money |
Money.stripTrailingZeros() |
Money |
Money.subtract(MonetaryAmount subtrahend) |
Money |
Money.with(MonetaryOperator operator) |
static Money |
Money.zero(CurrencyUnit currency)
Obtains an instance of
Money representing zero. |
| Modifier and Type | Method and Description |
|---|---|
MonetaryAmountFactory<Money> |
Money.getFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected Money |
MoneyAmountFactory.create(Number number,
CurrencyUnit currency,
MonetaryContext monetaryContext) |
| Modifier and Type | Method and Description |
|---|---|
MonetaryAmountFactory<Money> |
MoneyAmountFactoryProvider.createMonetaryAmountFactory() |
Class<Money> |
MoneyAmountFactory.getAmountType() |
Class<Money> |
MoneyAmountFactoryProvider.getAmountType() |
Copyright © 2012–2020 JavaMoney. All rights reserved.