> from: "Henning P. Schmiedehausen" <[EMAIL PROTECTED]> > Henri Yandell <[EMAIL PROTECTED]> writes: > > >Personally I'm against them. > > >If we do this method, why are we not adding a char override for every > >method that takes a String as an argument in that way? ie) countMatches, > >chomp/chompLast[after renaming], getNestedString, indexOfAny, leftPad, > >replace, reverseDelimitedString, strip etc. > > >Is there any reason why split/join are special? > > I need them. :-) And splitting at a single char / joining with a > single char as delimiter is needed very often and using '.' is more > efficient than "."
This case is justified IMHO for StringUtils as it matches the JDKs indexOf(). It is not part of a CharArrayUtils, because the char is an additional parameter, not the primary. eg. StringUtils.split(String, String) StringUtils.split(String, char) CharArrayUtils.split(char[], String) CharArrayUtils.split(char[], char) Stephen > >StringUtils is already huge and adding lots of overrides just seems to > >make it even larger. Just looking at the javadoc, I have to wonder why we > >need the Object[] and the Iterator [okay, i'm actually for this one] and > >why we don't have an Iterator option for concatenate. > > Then we should thing about using the current StringUtils as a frontend > facade for some split up classes and then deprecate StringUtils stuff > later. > > >Just my -2 new pence :) > > Regards > Henning > > > -- > Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH > [EMAIL PROTECTED] 49 9131 50 654 0 http://www.intermeta.de/ > > Java, perl, Solaris, Linux, xSP Consulting, Web Services > freelance consultant -- Jakarta Turbine Development -- hero for hire > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
