Package org.terracotta.statistics
Class ConstantValueStatistic<T extends Serializable>
- java.lang.Object
-
- org.terracotta.statistics.ConstantValueStatistic<T>
-
- All Implemented Interfaces:
Serializable,ValueStatistic<T>
public class ConstantValueStatistic<T extends Serializable> extends Object implements ValueStatistic<T>, Serializable
- Author:
- cdennis
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConstantValueStatistic(StatisticType type, T value)
-
-
-
Constructor Detail
-
ConstantValueStatistic
public ConstantValueStatistic(StatisticType type, T value)
-
-
Method Detail
-
value
public T value()
- Specified by:
valuein interfaceValueStatistic<T extends Serializable>- Returns:
- The current statistic value
-
type
public StatisticType type()
- Specified by:
typein interfaceValueStatistic<T extends Serializable>- Returns:
- The statistic type
-
-