You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Yandell (JIRA)" <ji...@apache.org> on 2008/08/22 09:42:44 UTC

[jira] Updated: (LANG-445) Method "startsWithAny(String str, String[] searchStrs)"

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

Henri Yandell updated LANG-445:
-------------------------------

    Fix Version/s: 3.0

Assigning to 3.0, but move to 3.x if no patch shows up.

> Method "startsWithAny(String str, String[] searchStrs)"
> -------------------------------------------------------
>
>                 Key: LANG-445
>                 URL: https://issues.apache.org/jira/browse/LANG-445
>             Project: Commons Lang
>          Issue Type: New Feature
>            Reporter: Sven Schliesing
>            Priority: Minor
>             Fix For: 3.0
>
>
> Similar to 
> http://commons.apache.org/lang/apidocs/org/apache/commons/lang/StringUtils.html#indexOfAny(java.lang.String,%20java.lang.String[])
> To replace
> ----------
> if (StringUtils.startsWith(foo, "bar") || StringUtils.startsWith(foo, "baz") || ...) [...]
> ----------
> with
> ----------
> if (StringUtils.startsWithAny(foo, new String[] {"bar", "baz", ...})) [...]
> ----------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.