Package org.terracotta.statistics
Class ConstantValueStatistic<T extends java.io.Serializable>
- java.lang.Object
-
- org.terracotta.statistics.ConstantValueStatistic<T>
-
- All Implemented Interfaces:
java.io.Serializable,ValueStatistic<T>
public class ConstantValueStatistic<T extends java.io.Serializable> extends java.lang.Object implements ValueStatistic<T>, java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUIDprivate StatisticTypetypeprivate Tvalue
-
Constructor Summary
Constructors Constructor Description ConstantValueStatistic(StatisticType type, T value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatisticTypetype()Tvalue()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
value
private final T extends java.io.Serializable value
-
type
private final StatisticType type
-
-
Constructor Detail
-
ConstantValueStatistic
public ConstantValueStatistic(StatisticType type, T value)
-
-
Method Detail
-
value
public T value()
- Specified by:
valuein interfaceValueStatistic<T extends java.io.Serializable>- Returns:
- The current statistic value
-
type
public StatisticType type()
- Specified by:
typein interfaceValueStatistic<T extends java.io.Serializable>- Returns:
- The statistic type
-
-