Package com.e1c.langtool.stat
Interface Statistics
- All Known Implementing Classes:
PersistentStatistics
public interface Statistics
The Statistics of some path in the project.
-
Method Summary
Modifier and TypeMethodDescriptionfloatgetMetricPercentage(@NonNull Metric metric, @NonNull TranslateLanguage language) Gets the metric percentage compared to the base value.intgetMetricValue(@NonNull Metric metric) Gets the metric value.getMetricValue(@NonNull Metric metric, @NonNull TranslateLanguage language) Gets the metric value.
-
Method Details
-
getMetricValue
Gets the metric value.- Parameters:
metric- the metric, cannot returnnull.language- the language, cannot returnnull.- Returns:
- the translation progress, can be
null
-
getMetricPercentage
Gets the metric percentage compared to the base value.- Parameters:
metric- the metric, cannot returnnull.language- the language, cannot returnnull.- Returns:
- the metric percentage
-
getMetricValue
Gets the metric value.- Parameters:
metric- the metric of metric, cannot returnnull.- Returns:
- the metric value
-