Package com.e1c.langtool.stat
Interface Metric
public interface Metric
An interface that describes a metric.
-
Method Summary
Modifier and TypeMethodDescription@NonNull StringReturns a description of this metric.@NonNull GroupingRuleGets the grouping rule.@NonNull StringgetID()Returns a code of this metric.@NonNull StringgetTitle()Returns a title of this metric.default booleanisApplicable(@NonNull TranslateLanguage language) Checks if the metric is applicable for the translation languages.
-
Method Details
-
getID
@NonNull String getID()Returns a code of this metric.- Returns:
- the id of metric. It can't be
null.
-
getTitle
@NonNull String getTitle()Returns a title of this metric.- Returns:
- a title of this metric. It can't be
null.
-
getDescription
@NonNull String getDescription()Returns a description of this metric.- Returns:
- a description of this metric. It can't be
null.
-
getGroupingRule
@NonNull GroupingRule getGroupingRule()Gets the grouping rule.- Returns:
- the grouping rule determines by which rule to combine resources
-
isApplicable
Checks if the metric is applicable for the translation languages. Metric my skip computing for language by translate option, language code or anything else.- Parameters:
language- the language- Returns:
- true, if the metric is applicable for the language
-