Exemplo n.º 1
0
 public static String replace(String source, String search, String replace, IndicatorType type) {
   return source.replace(type.getValue() + search, replace);
 }
Exemplo n.º 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;
  }