Interface Metric


public interface Metric
An interface that describes a metric.
  • 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

      default boolean isApplicable(@NonNull TranslateLanguage language)
      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