public class Statistic<T extends Serializable> extends Object implements Serializable
| Constructor and Description |
|---|
Statistic(StatisticType type) |
Statistic(StatisticType type,
List<Sample<T>> samples) |
Statistic(StatisticType type,
Sample<T> sample) |
| Modifier and Type | Method and Description |
|---|---|
Optional<Sample<T>> |
getLatestSample() |
Optional<T> |
getLatestSampleValue() |
List<Sample<T>> |
getSamples() |
StatisticType |
getType() |
boolean |
isEmpty() |
String |
toString() |
public Statistic(StatisticType type)
public Statistic(StatisticType type, Sample<T> sample)
public Statistic(StatisticType type, List<Sample<T>> samples)
public StatisticType getType()
public boolean isEmpty()
Copyright © 2018. All rights reserved.