You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Jörg Gottschling (JIRA)" <ji...@apache.org> on 2007/04/27 08:42:15 UTC

[jira] Created: (LANG-330) Add StringBufferUtils or overload StringUtils methods

Add StringBufferUtils or overload StringUtils methods
-----------------------------------------------------

                 Key: LANG-330
                 URL: https://issues.apache.org/jira/browse/LANG-330
             Project: Commons Lang
          Issue Type: New Feature
    Affects Versions: 3.0
            Reporter: Jörg Gottschling


There's especially one group of methods you should overload with StringBuffer (or Appendable in a special JDK5 Class?):
StringUtils.join

It should take a StringBuffer (/Appendable) as first Argument to which the Strings will be added.

Usage Example:

StringBuffer sql = new StringBuffer("SELECT * FROM foo WHERE bar IN (");
StringUtils.join(sql, bars, ", ");
sql.append(") AND bar NOT IN (");
StringUtils.join(sql, noBars, ", ");
sql.append(");");



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


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


[jira] Updated: (LANG-330) Add StringBufferUtils or overload StringUtils methods

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LANG-330?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Yandell updated LANG-330:
-------------------------------

    Affects Version/s:     (was: 3.0)
        Fix Version/s: JDK 5.0 features

Appendable sounds like an attractive jdk 5 feature; setting the fixVersion to that as a part of the Lang2 thinking.

> Add StringBufferUtils or overload StringUtils methods
> -----------------------------------------------------
>
>                 Key: LANG-330
>                 URL: https://issues.apache.org/jira/browse/LANG-330
>             Project: Commons Lang
>          Issue Type: New Feature
>            Reporter: Jörg Gottschling
>             Fix For: JDK 5.0 features
>
>
> There's especially one group of methods you should overload with StringBuffer (or Appendable in a special JDK5 Class?):
> StringUtils.join
> It should take a StringBuffer (/Appendable) as first Argument to which the Strings will be added.
> Usage Example:
> StringBuffer sql = new StringBuffer("SELECT * FROM foo WHERE bar IN (");
> StringUtils.join(sql, bars, ", ");
> sql.append(") AND bar NOT IN (");
> StringUtils.join(sql, noBars, ", ");
> sql.append(");");

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org