Class StrSubstitutor

java.lang.Object
org.chenile.utils.str.StrSubstitutor

public class StrSubstitutor extends Object
  • Constructor Details

    • StrSubstitutor

      public StrSubstitutor()
  • Method Details

    • replaceNamedKeysInTemplate

      public static String replaceNamedKeysInTemplate(String template, Map<String,String> valueMap)
    • replaceNamedKeysInTemplate

      public static String replaceNamedKeysInTemplate(String template, Map<String,String> valueMap, String delimiter)
      Replaces a bunch of named string with their values (provided in the map) in a template string.
      Parameters:
      template -
      valueMap -
      Returns:
      the substituted string