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

[lang] Add methods and tests to StrBuilder

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1
    • 2.2
    • None
    • None
    • Operating System: All
      Platform: All

    • 35406

    Description

      StrBuilder needs various enhancements:

      • All methods taking in a String should have a parallel method taking a
        StringBuffer and a StrBuilder
      • rename method: delete(char) to deleteAll(char)
      • add method: deleteFirst(char)
      • rename method: delete(String) to deleteAll(String)
      • add method: deleteFirst(String)
      • rename method: replace(char, char) to replaceAll(char, char)
      • add method: replaceFirst(char, char)
      • rename method: replace(String, String) to replaceAll(String, String)
      • add method: replaceFirst(String, String)
      • equals() / hashCode()
      • equalsIgnoreCase()

      plus, in theory other methods from StringUtils. But the ones listed above are
      the key ones.

      Attachments

        Activity

          People

            Unassigned Unassigned
            scolebourne@joda.org Stephen Colebourne
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: