Class QuantitySummaryStatistics<Q extends javax.measure.Quantity<Q>>
java.lang.Object
tech.units.indriya.function.QuantitySummaryStatistics<Q>
- Type Parameters:
Q-
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Otavio, Werner
-
Method Summary
Modifier and TypeMethodDescriptionvoidRecords another value into the summary information.combine(QuantitySummaryStatistics<Q> quantitySummary) Combines the state of anotherQuantitySummaryStatisticsinto this one.booleanwill equals when the unit were equalsjavax.measure.Quantity<Q> Get the quantity average of all amounts added.javax.measure.Quantity<Q> getAverage(javax.measure.Unit<Q> unit) Get the quantity average of all amounts added converted to unitlonggetCount()Get the number of items added to this summary instance.javax.measure.Quantity<Q> getMax()Get the maximal amount found within this summary.javax.measure.Quantity<Q> Get the maximal amount found within this summary converted to unitjavax.measure.Quantity<Q> getMin()Get the minimal quantity found within this summary.javax.measure.Quantity<Q> Get the minimal quantity found within this summary converted to unitjavax.measure.Quantity<Q> getSum()Get the sum of all amounts within this summary.javax.measure.Quantity<Q> Get the sum of all amounts within this summary converted to unitinthashCode()convert the summary to this unit measuretoString()
-
Method Details
-
accept
-
combine
Combines the state of anotherQuantitySummaryStatisticsinto this one.- Parameters:
quantitySummary- anotherQuantitySummaryStatistics, not null.
-
getCount
Get the number of items added to this summary instance.- Returns:
- the number of summarized items, >= 0.
-
getMin
-
getMin
-
getMax
-
getMax
-
getSum
-
getSum
-
getAverage
Get the quantity average of all amounts added.- Returns:
- the quantity average quantity
-
getAverage
Get the quantity average of all amounts added converted to unit- Parameters:
unit- to convert- Returns:
- the average quantity converted to this unit
-
to
convert the summary to this unit measure- Parameters:
unit- to convert the summary- Returns:
- the summary converted to this unit
-
equals
-
hashCode
-
toString
-