getStatistic

abstract fun getStatistic(key: T): Statistic<T>

Gets the statistic for the given key, creating it if it does not already exist.

Return

the statistic for the key

Parameters

key

the key


abstract fun getStatistic(key: T, formatter: StatisticFormatter): Statistic<T>

Gets the statistic for the given key with the given formatter, creating it if it does not already exist.

Return

the statistic for the key

Parameters

key

the key

formatter

the formatter