Package org.chenile.utils.str
Class StrSubstitutor
java.lang.Object
org.chenile.utils.str.StrSubstitutor
-
Constructor Details
-
StrSubstitutor
public StrSubstitutor()
-
-
Method Details
-
replaceNamedKeysInTemplate
-
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
-