public final class MonetaryFunctions extends Object
| Constructor and Description |
|---|
MonetaryFunctions() |
| Modifier and Type | Method and Description |
|---|---|
static Comparator<MonetaryAmount> |
sortCurrencyUnit()
Get a comparator for sorting CurrencyUnits ascending.
|
static Comparator<MonetaryAmount> |
sortCurrencyUnitDesc()
Get a comparator for sorting CurrencyUnits descending.
|
static Comparator<MonetaryAmount> |
sortNumber()
Get a comparator for sorting amount by number value ascending.
|
static Comparator<MonetaryAmount> |
sortNumberDesc()
Get a comparator for sorting amount by number value descending.
|
static Comparator<? super MonetaryAmount> |
sortValiable(ExchangeRateProvider provider)
Deprecated.
call #sortValuable instead of.
|
static Comparator<? super MonetaryAmount> |
sortValiableDesc(ExchangeRateProvider provider)
Deprecated.
Use #sortValiableDesc instead of.
|
static Comparator<? super MonetaryAmount> |
sortValuable(ExchangeRateProvider provider)
comparator to sort the
MonetaryAmount considering the
ExchangeRate |
static Comparator<? super MonetaryAmount> |
sortValuableDesc(ExchangeRateProvider provider)
Descending order of
sortValuable(ExchangeRateProvider) |
static MonetaryAmount |
sum(MonetaryAmount a,
MonetaryAmount b)
Adds two monetary together
|
public MonetaryFunctions()
public static Comparator<MonetaryAmount> sortCurrencyUnit()
public static Comparator<? super MonetaryAmount> sortValuable(ExchangeRateProvider provider)
MonetaryAmount considering the
ExchangeRateprovider - the rate provider to be used.MonetaryAmount using ExchangeRate@Deprecated public static Comparator<? super MonetaryAmount> sortValiable(ExchangeRateProvider provider)
MonetaryAmount considering the
ExchangeRateprovider - the rate provider to be used.MonetaryAmount using ExchangeRatepublic static Comparator<? super MonetaryAmount> sortValuableDesc(ExchangeRateProvider provider)
sortValuable(ExchangeRateProvider)provider - the rate provider to be used.sortValuable(ExchangeRateProvider)@Deprecated public static Comparator<? super MonetaryAmount> sortValiableDesc(ExchangeRateProvider provider)
sortValuable(ExchangeRateProvider)provider - the rate provider to be used.sortValuable(ExchangeRateProvider)public static Comparator<MonetaryAmount> sortCurrencyUnitDesc()
public static Comparator<MonetaryAmount> sortNumber()
public static Comparator<MonetaryAmount> sortNumberDesc()
public static MonetaryAmount sum(MonetaryAmount a, MonetaryAmount b)
a - the first operandb - the second operanda and bNullPointerException - if a o b be nullMonetaryException - if a and b have different currencyCopyright © 2012–2020 JavaMoney. All rights reserved.