@Test public void getDetectorIds() { initDetectors(); Assert.assertEquals(cacheValue, CacheUtil.getDetectors(detectors)); }
public static String getDetectors(List<Detector> detectors) { List<String> result = new ArrayList<>(); detectors.forEach(detector -> { result.add(detector.getConsumerId() + "," + detector.getUuid().toString()); }); return String.join(CACHE_VALUE_DELIMITER, result); }
CacheUtil { public static String getDetectors(List<Detector> detectors) { List<String> result = new ArrayList<>(); detectors.forEach(detector -> { result.add(detector.getConsumerId() + "," + detector.getUuid().toString()); }); return String.join(CACHE_VALUE_DELIMITER, result); } }
CacheUtil { public static String getDetectors(List<Detector> detectors) { List<String> result = new ArrayList<>(); detectors.forEach(detector -> { result.add(detector.getConsumerId() + "," + detector.getUuid().toString()); }); return String.join(CACHE_VALUE_DELIMITER, result); }  }
CacheUtil { public static String getDetectors(List<Detector> detectors) { List<String> result = new ArrayList<>(); detectors.forEach(detector -> { result.add(detector.getConsumerId() + "," + detector.getUuid().toString()); }); return String.join(CACHE_VALUE_DELIMITER, result); }  static String getKey(Map<String, String> tags); static Map<String, String> getTags(String key); static String getDetectors(List<Detector> detectors); static List<Detector> buildDetectors(String detectorsString); }
CacheUtil { public static String getDetectors(List<Detector> detectors) { List<String> result = new ArrayList<>(); detectors.forEach(detector -> { result.add(detector.getConsumerId() + "," + detector.getUuid().toString()); }); return String.join(CACHE_VALUE_DELIMITER, result); }  static String getKey(Map<String, String> tags); static Map<String, String> getTags(String key); static String getDetectors(List<Detector> detectors); static List<Detector> buildDetectors(String detectorsString);  }