MonetarySummaryStatistics This
implementations cannot do exchange rate
| Modifier and Type | Field and Description |
|---|---|
| protected MonetaryAmount | |
| protected long | |
| private final MonetaryAmount | |
| protected MonetaryAmount | |
| protected MonetaryAmount | |
| protected MonetaryAmount |
| Access | Constructor and Description |
|---|---|
| protected | DefaultMonetarySummaryStatistics(CurrencyUnit
the target currency, not null. currencyUnit)Creates a new instance, targeting the given
|
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(MonetaryAmount amount)
Implements org. Records another value into the summary information. |
| public MonetarySummaryStatistics | combine(MonetarySummaryStatistics summaryStatistics)
Implements org. Combines the state of another |
| private void | |
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public MonetaryAmount | getAverage()
Implements org. Get the mean average of all amounts added. |
| public long | getCount()
Implements org. Get the number of items added to this summary instance. |
| public CurrencyUnit | getCurrencyUnit()
Implements org. the currency unit used in summary |
| public MonetaryAmount | getMax()
Implements org. Get the maximal amount found within this summary. |
| public MonetaryAmount | getMin()
Implements org. Get the minimal amount found within this summary. |
| public MonetaryAmount | getSum()
Implements org. Get the sum of all amounts within this summary. |
| public int | |
| private boolean | |
| public boolean | isExchangeable()
Implements org. return if is possible do exchange rate or not with the MonetarySummary |
| public static DefaultMonetarySummaryStatistics | of(CurrencyUnit
the target currency, not null. currencyUnit)Creates a new instance, targeting the given
|
| private void | |
| public MonetarySummaryStatistics | to(CurrencyUnit unit)
Implements org. created the MonetarySummaryStatistics converted to |
| public String |
| average | back to summary |
|---|---|
| protected MonetaryAmount average | |
| count | back to summary |
|---|---|
| protected long count | |
| empty | back to summary |
|---|---|
| private final MonetaryAmount empty | |
| max | back to summary |
|---|---|
| protected MonetaryAmount max | |
| min | back to summary |
|---|---|
| protected MonetaryAmount min | |
| sum | back to summary |
|---|---|
| protected MonetaryAmount sum | |
| DefaultMonetarySummaryStatistics | back to summary |
|---|---|
| protected DefaultMonetarySummaryStatistics(CurrencyUnit currencyUnit) Creates a new instance, targeting the given
| |
| accept | back to summary |
|---|---|
| public void accept(MonetaryAmount amount) Implements org. Doc from org. Records another value into the summary information.
| |
| combine | back to summary |
|---|---|
| public MonetarySummaryStatistics combine(MonetarySummaryStatistics summaryStatistics) Implements org. Doc from org. Combines the state of another
| |
| doSummary | back to summary |
|---|---|
| private void doSummary(MonetaryAmount monetaryAmount) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getAverage | back to summary |
|---|---|
| public MonetaryAmount getAverage() Implements org. Doc from org. Get the mean average of all amounts added.
| |
| getCount | back to summary |
|---|---|
| public long getCount() Implements org. Doc from org. Get the number of items added to this summary instance.
| |
| getCurrencyUnit | back to summary |
|---|---|
| public CurrencyUnit getCurrencyUnit() Implements org. Doc from org. the currency unit used in summary
| |
| getMax | back to summary |
|---|---|
| public MonetaryAmount getMax() Implements org. Doc from org. Get the maximal amount found within this summary.
| |
| getMin | back to summary |
|---|---|
| public MonetaryAmount getMin() Implements org. Doc from org. Get the minimal amount found within this summary.
| |
| getSum | back to summary |
|---|---|
| public MonetaryAmount getSum() Implements org. Doc from org. Get the sum of all amounts within this summary.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isEmpty | back to summary |
|---|---|
| private boolean isEmpty() | |
| isExchangeable | back to summary |
|---|---|
| public boolean isExchangeable() Implements org. Doc from org. return if is possible do exchange rate or not with the MonetarySummary
| |
| of | back to summary |
|---|---|
| public static DefaultMonetarySummaryStatistics of(CurrencyUnit currencyUnit) Creates a new instance, targeting the given
| |
| setSameMonetary | back to summary |
|---|---|
| private void setSameMonetary(MonetaryAmount monetary) | |
| to | back to summary |
|---|---|
| public MonetarySummaryStatistics to(CurrencyUnit unit) Implements org. Doc from org. created the MonetarySummaryStatistics converted to
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |