You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2019/07/26 13:39:00 UTC

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

     [ https://issues.apache.org/jira/browse/TEXT-169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Gregory closed TEXT-169.
-----------------------------
       Resolution: Fixed
    Fix Version/s: 1.8

In git master.

> 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
>             Fix For: 1.8
>
>
> 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)