Package org.terracotta.statistics
Class SuppliedValueStatistic<T extends Serializable>
java.lang.Object
org.terracotta.statistics.SuppliedValueStatistic<T>
- All Implemented Interfaces:
ValueStatistic<T>
public class SuppliedValueStatistic<T extends Serializable>
extends Object
implements ValueStatistic<T>
This class can be used to create a
ValueStatistic with a specific StatisticType
which value is given by a provided Supplier-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
supplier
-
type
-
-
Constructor Details
-
SuppliedValueStatistic
-
-
Method Details
-
value
- Specified by:
valuein interfaceValueStatistic<T extends Serializable>- Returns:
- The current statistic value
-
type
- Specified by:
typein interfaceValueStatistic<T extends Serializable>- Returns:
- The statistic type
-