Beispiel #1
0
 public static String replace(String source, String search, String replace, IndicatorType type) {
   return source.replace(type.getValue() + search, replace);
 }
Beispiel #2
0
  public static String replace(String source, Map<String, String> changes, IndicatorType type) {
    for (Map.Entry<String, String> entry : changes.entrySet())
      source = source.replace(type.getValue() + entry.getKey(), entry.getValue());

    return source;
  }