[
https://issues.apache.org/jira/browse/TEXT-169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gary Gregory updated TEXT-169:
------------------------------
Description:
Add helper factory method
{{org.apache.commons.text.StringSubstitutor.createInterpolator()}}:
{code:java}
/**
* 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());
}
{code}
was:Add helper factory method
{{org.apache.commons.text.StringSubstitutor.createInterpolator()}}.
> Add helper factory method
> org.apache.commons.text.StringSubstitutor.createInterpolator()
> ----------------------------------------------------------------------------------------
>
> Key: TEXT-169
> URL: https://issues.apache.org/jira/browse/TEXT-169
> Project: Commons Text
> Issue Type: New Feature
> Reporter: Gary Gregory
> Assignee: Gary Gregory
> Priority: Major
>
> Add helper factory method
> {{org.apache.commons.text.StringSubstitutor.createInterpolator()}}:
> {code:java}
> /**
> * 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());
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)