commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 17882] New: - Add join(..., char c) to StringUtils (and some performance fixes). Even contains tests!
Date Tue, 11 Mar 2003 16:08:11 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17882>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17882

Add join(..., char c) to StringUtils (and some performance fixes). Even contains tests!

           Summary: Add join(..., char c) to StringUtils (and some
                    performance fixes). Even contains tests!
           Product: Commons
           Version: 1.0.1 Final
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Lang
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: hps@intermeta.de


This is a patch to commons.lang to add the following two methods
to StringUtils

public static String join(Object[] array, char separator)
public static String join(Iterator iterator, char separator)

They're equal to the ..., String separator) methods but take
a char as second parameter.

I also took a look at the other join methods and enhanced them for the
separator == null case.

The test case for join has been extended for test cases of the new
methods, tests for the null separator and some test for joining
an empty array / collection object.

Please apply. :-)

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message