protected void assertRequiredDependentMetricCount(String dictionaryName,List<String> dependentMetrics){
  int requiredCount=getDependentMetricsRequired();
  int actualCount=dependentMetrics.size();
  if (actualCount != requiredCount) {
    String message=String.format("%s got %d of %d dependent metrics",dictionaryName,actualCount,requiredCount);
    LOG.error(message);
    throw new IllegalArgumentException(message);
  }
}

protected void assertRequiredDependentMetricCount ( String dictionaryName , List < String > dependentMetrics ) { int requiredCount = getDependentMetricsRequired ( ) ; int actualCount = dependentMetrics . size ( ) ; if ( actualCount != requiredCount ) { String message = String . format ( "%s got %d of %d dependent metrics" , dictionaryName , actualCount , requiredCount ) ; LOG . error ( message ) ; throw new IllegalArgumentException ( message ) ; } }
checks that we have the right number of metrics , and throws an exception if we don ' t .
