public class MonetarySummaryStatistics extends Object
| 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. |
boolean |
equals(Object obj)
will equals when the currency utils were equals
|
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.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.
|
int |
hashCode() |
String |
toString() |
public void accept(javax.money.MonetaryAmount amount)
amount - the input amount value to be addeed, not null.public MonetarySummaryStatistics combine(MonetarySummaryStatistics summaryStatistics)
MonetarySummaryStatistics into this
one.summaryStatistics - another MonetarySummaryStatistics, not null.public long getCount()
public javax.money.MonetaryAmount getMin()
public javax.money.MonetaryAmount getMax()
public javax.money.MonetaryAmount getSum()
public javax.money.MonetaryAmount getAverage()
Copyright © 2012-2014 JavaMoney. All Rights Reserved.