public interface MonetarySummaryStatistics
Modifier and Type | Method and Description |
---|---|
void |
accept(javax.money.MonetaryAmount amount)
Records another value into the summary information.
|
MonetarySummaryStatistics |
combine(MonetarySummaryStatistics summaryStatistics)
Combines the state of another
MonetarySummaryStatistics into this
one. |
javax.money.MonetaryAmount |
getAverage()
Get the mean average of all amounts added.
|
long |
getCount()
Get the number of items added to this summary instance.
|
javax.money.CurrencyUnit |
getCurrencyUnit()
the currency unit used in summary
|
javax.money.MonetaryAmount |
getMax()
Get the maximal amount found within this summary.
|
javax.money.MonetaryAmount |
getMin()
Get the minimal amount found within this summary.
|
javax.money.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(javax.money.CurrencyUnit unit)
created the MonetarySummaryStatistics converted to
CurrencyUnit |
void accept(javax.money.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()
javax.money.MonetaryAmount getMin()
javax.money.MonetaryAmount getMax()
javax.money.MonetaryAmount getSum()
javax.money.MonetaryAmount getAverage()
javax.money.CurrencyUnit getCurrencyUnit()
boolean isExchangeable()
MonetarySummaryStatistics to(javax.money.CurrencyUnit unit)
CurrencyUnit
unit
- to be convertedUnsupportedOperationException
- if isExchangeable()
was
falseNullPointerException
- if unit was nullCopyright © 2012-2015 JavaMoney. All Rights Reserved.