public interface MonetarySummaryStatistics
| Modifier and Type | Method and Description |
|---|---|
void |
accept(MonetaryAmount amount)
Records another value into the summary information.
|
MonetarySummaryStatistics |
combine(MonetarySummaryStatistics summaryStatistics)
Combines the state of another
MonetarySummaryStatistics into this
one. |
MonetaryAmount |
getAverage()
Get the mean average of all amounts added.
|
long |
getCount()
Get the number of items added to this summary instance.
|
CurrencyUnit |
getCurrencyUnit()
the currency unit used in summary
|
MonetaryAmount |
getMax()
Get the maximal amount found within this summary.
|
MonetaryAmount |
getMin()
Get the minimal amount found within this summary.
|
MonetaryAmount |
getSum()
Get the sum of all amounts within this summary.
|
boolean |
isExchangeable()
return if is possible do exchange rate or not with the MonetarySummary
|
MonetarySummaryStatistics |
to(CurrencyUnit unit)
created the MonetarySummaryStatistics converted to
CurrencyUnit |
void accept(MonetaryAmount amount)
amount - the input amount value to be added, not null.MonetarySummaryStatistics combine(MonetarySummaryStatistics summaryStatistics)
MonetarySummaryStatistics into this
one.summaryStatistics - another MonetarySummaryStatistics, not null.long getCount()
MonetaryAmount getMin()
MonetaryAmount getMax()
MonetaryAmount getSum()
MonetaryAmount getAverage()
CurrencyUnit getCurrencyUnit()
boolean isExchangeable()
MonetarySummaryStatistics to(CurrencyUnit unit)
CurrencyUnitunit - to be convertedUnsupportedOperationException - if isExchangeable() was
falseNullPointerException - if unit was nullCopyright © 2012–2020 JavaMoney. All rights reserved.