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

[lang] Add methods and tests to StrBuilder

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Bugzilla Id:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: