Class Statistic<T extends Serializable>
- java.lang.Object
-
- org.terracotta.statistics.registry.Statistic<T>
-
- All Implemented Interfaces:
Serializable
public class Statistic<T extends Serializable> extends Object implements Serializable
- Author:
- Mathieu Carbou
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Statistic(StatisticType type)Statistic(StatisticType type, List<Sample<T>> samples)Statistic(StatisticType type, Sample<T> sample)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Sample<T>>getLatestSample()Optional<T>getLatestSampleValue()List<Sample<T>>getSamples()StatisticTypegetType()booleanisEmpty()StringtoString()
-
-
-
Constructor Detail
-
Statistic
public Statistic(StatisticType type)
-
Statistic
public Statistic(StatisticType type, Sample<T> sample)
-
Statistic
public Statistic(StatisticType type, List<Sample<T>> samples)
-
-
Method Detail
-
getType
public StatisticType getType()
-
isEmpty
public boolean isEmpty()
-
-