public abstract class DataCounter<T> extends Object
Constructor and Description |
---|
DataCounter() |
Modifier and Type | Method and Description |
---|---|
void |
add(T value)
Add a new data
|
abstract T |
getAverage()
Get the average of the data
|
List<T> |
getList()
Get all data
|
abstract T |
getMax()
Get the maximum of registered data
|
abstract T |
getMin()
Get the minimum of registered data
|
int |
getSize()
Get the counter of the data
|
boolean |
has()
Check if has something
|
public int getSize()
public void add(T value)
value
- the recored valuepublic abstract T getMin()
public abstract T getMax()
public abstract T getAverage()
public boolean has()