|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.universAAL.middleware.util.IntAggregator
public final class IntAggregator
Utility class to calculate values (like average, minimum) from a consecutive appearance of integer values.
RatingAggregator
Constructor Summary | |
---|---|
IntAggregator()
Create a new instance. |
Method Summary | |
---|---|
IntAggregator |
addVote(int vote)
Add a new integer. |
int |
getAverage()
Get the average value. |
int |
getMax()
Get the maximum value. |
int |
getMin()
Get the minimum value. |
int |
getNumberOfVotes()
Get the number of integers. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntAggregator()
Method Detail |
---|
public IntAggregator addVote(int vote)
public int getAverage()
public int getMax()
public int getMin()
public int getNumberOfVotes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |