[TEXT-169] Add helper factory method org.apache.commons.text.StringSubstitutor.createInterpolator() (original) (raw)
- Type:
New Feature
- Status: Closed
- Priority:
Major
- Resolution: Fixed
- Affects Version/s: None
- Fix Version/s: 1.8
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());
}