Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-330

Add StringBufferUtils or overload StringUtils methods

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • 3.0
    • lang.*
    • None

    Description

      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(");");

      Attachments

        Activity

          People

            Unassigned Unassigned
            jogi Jörg Gottschling
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: