Пример #1
0
 public static String getKey(MetricsInterface metric, String subject) {
   if (subject == null) {
     return metric.getCode();
   } else {
     return metric.getCode() + " / " + subject;
   }
 }
Пример #2
0
 @Override
 public String getKey() {
   if (subject == null) {
     return metric.getCode();
   } else {
     return metric.getCode() + " / " + subject;
   }
 }