| Package | Description |
|---|---|
| org.joda.money | |
| org.joda.money.format |
| Modifier and Type | Class | Description |
|---|---|---|
class |
BigMoney |
An amount of money with unrestricted decimal place precision.
|
class |
Money |
An amount of money with the standard decimal places defined by the currency.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
BigMoney.compareTo(BigMoneyProvider other) |
Compares this monetary value to another.
|
int |
Money.compareTo(BigMoneyProvider other) |
Compares this monetary value to another.
|
boolean |
BigMoney.isEqual(BigMoneyProvider other) |
Checks if this monetary value is equal to another.
|
boolean |
Money.isEqual(BigMoneyProvider other) |
Checks if this monetary value is equal to another.
|
boolean |
BigMoney.isGreaterThan(BigMoneyProvider other) |
Checks if this monetary value is greater than another.
|
boolean |
Money.isGreaterThan(BigMoneyProvider other) |
Checks if this monetary value is greater than another.
|
boolean |
BigMoney.isLessThan(BigMoneyProvider other) |
Checks if this monetary value is less than another.
|
boolean |
Money.isLessThan(BigMoneyProvider other) |
Checks if this monetary value is less than another.
|
static boolean |
MoneyUtils.isNegative(BigMoneyProvider moneyProvider) |
Checks if the monetary value is negative and non-zero, treating null as zero.
|
static boolean |
MoneyUtils.isNegativeOrZero(BigMoneyProvider moneyProvider) |
Checks if the monetary value is negative or zero, treating null as zero.
|
static boolean |
MoneyUtils.isPositive(BigMoneyProvider moneyProvider) |
Checks if the monetary value is positive and non-zero, treating null as zero.
|
static boolean |
MoneyUtils.isPositiveOrZero(BigMoneyProvider moneyProvider) |
Checks if the monetary value is positive or zero, treating null as zero.
|
boolean |
BigMoney.isSameCurrency(BigMoneyProvider money) |
Checks if this instance and the specified instance have the same currency.
|
boolean |
Money.isSameCurrency(BigMoneyProvider other) |
Checks if this instance and the specified instance have the same currency.
|
static boolean |
MoneyUtils.isZero(BigMoneyProvider moneyProvider) |
Checks if the monetary value is zero, treating null as zero.
|
BigMoney |
BigMoney.minus(BigMoneyProvider moneyToSubtract) |
Returns a copy of this monetary value with the amount subtracted.
|
BigMoney |
BigMoney.minusRetainScale(BigMoneyProvider moneyToSubtract,
java.math.RoundingMode roundingMode) |
Returns a copy of this monetary value with the amount in the same currency subtracted
retaining the scale by rounding the result.
|
static BigMoney |
BigMoney.of(BigMoneyProvider moneyProvider) |
Obtains an instance of
BigMoney from a provider. |
static Money |
Money.of(BigMoneyProvider moneyProvider) |
Obtains an instance of
Money from a provider. |
static Money |
Money.of(BigMoneyProvider moneyProvider,
java.math.RoundingMode roundingMode) |
Obtains an instance of
Money from a provider, rounding as necessary. |
BigMoney |
BigMoney.plus(BigMoneyProvider moneyToAdd) |
Returns a copy of this monetary value with the amount added.
|
BigMoney |
BigMoney.plusRetainScale(BigMoneyProvider moneyToAdd,
java.math.RoundingMode roundingMode) |
Returns a copy of this monetary value with the amount in the same currency added
retaining the scale by rounding the result.
|
static BigMoney |
BigMoney.total(BigMoneyProvider... monies) |
Obtains an instance of
BigMoney as the total value of an array. |
static BigMoney |
BigMoney.total(CurrencyUnit currency,
BigMoneyProvider... monies) |
Obtains an instance of
Money as the total value of
a possibly empty array. |
| Modifier and Type | Method | Description |
|---|---|---|
BigMoney |
BigMoney.minus(java.lang.Iterable<? extends BigMoneyProvider> moniesToSubtract) |
Returns a copy of this monetary value with a collection of monetary amounts subtracted.
|
BigMoney |
BigMoney.plus(java.lang.Iterable<? extends BigMoneyProvider> moniesToAdd) |
Returns a copy of this monetary value with a collection of monetary amounts added.
|
static BigMoney |
BigMoney.total(java.lang.Iterable<? extends BigMoneyProvider> monies) |
Obtains an instance of
BigMoney as the total value of a collection. |
static BigMoney |
BigMoney.total(CurrencyUnit currency,
java.lang.Iterable<? extends BigMoneyProvider> monies) |
Obtains an instance of
Money as the total value of
a possibly empty collection. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
MoneyFormatter.print(java.lang.Appendable appendable,
BigMoneyProvider moneyProvider) |
Prints a monetary value to an
Appendable converting
any IOException to a MoneyFormatException. |
java.lang.String |
MoneyFormatter.print(BigMoneyProvider moneyProvider) |
Prints a monetary value to a
String. |
void |
MoneyFormatter.printIO(java.lang.Appendable appendable,
BigMoneyProvider moneyProvider) |
Prints a monetary value to an
Appendable potentially
throwing an IOException. |
Copyright © 2009–2018 Joda.org. All rights reserved.