Commons Lang
  1. Commons Lang
  2. LANG-161

[lang] Add methods and tests to StrBuilder

    Details

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

      Operating System: All
      Platform: All

      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.

        Activity

        Hide
        Stephen Colebourne added a comment -

        Methods added

        Show
        Stephen Colebourne added a comment - Methods added

          People

          • Assignee:
            Unassigned
            Reporter:
            Stephen Colebourne
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development