Details

    • b100
    • Verified

    Description

      StringJoiner support prefix and suffix. With parallel operation, it is quite often that two StringJoiner is used and later to merge together, which the prefix, suffix is not wanted.

      Propose to add a merge() method to support combining without prefix/suffix.

        StringJoiner sj = new StringJoiner(", ", "[", "]");
        sj.add("A");
        sj.add("B");

        otherStringJoiner.add(sj.toString()) // adds "[A,B]"
        otherStringJoiner.merge(sj) // adds "A,B"

      Attachments

        Activity

          People

            henryjen Henry Jen
            henryjen Henry Jen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: