[TEXT-169] Add helper factory method org.apache.commons.text.StringSubstitutor.createInterpolator() (original) (raw)

Add helper factory method org.apache.commons.text.StringSubstitutor.createInterpolator():

/**
 * Creates a new instance using the interpolator string lookup {@link StringLookupFactory#interpolatorStringLookup()}.
 * 
 * @return a new instance using the interpolator string lookup.
 * @see StringLookupFactory#interpolatorStringLookup()
 * @since 1.8
 */
public static StringSubstitutor createInterpolator() {
    return new StringSubstitutor(StringLookupFactory.INSTANCE.interpolatorStringLookup());
}