public final class RatingAggregator extends Object
Rating
values.IntAggregator
Constructor and Description |
---|
RatingAggregator()
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
RatingAggregator |
addRating(Rating r)
Add a new Rating.
|
Rating |
getAverage()
Get the average value.
|
Rating |
getMax()
Get the maximum value.
|
Rating |
getMin()
Get the minimum value.
|
int |
getNumberOfRatings()
Get the number of Ratings.
|
public RatingAggregator addRating(Rating r)
public Rating getAverage()
public Rating getMax()
public Rating getMin()
public int getNumberOfRatings()
Copyright © 2018 universAAL Consortium. All rights reserved.