commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Yandell <flame...@gmail.com>
Subject Re: [lang] CharSequenceUtils resurrection? [Was: Remaining work]
Date Mon, 04 Apr 2011 08:44:58 GMT
On Sun, Apr 3, 2011 at 7:10 PM, Gary Gregory <garydgregory@gmail.com> wrote:
> On Sun, Apr 3, 2011 at 7:47 PM, Henri Yandell <flamefew@gmail.com> wrote:
>>
>> I've rolled the code back. Now I'm thinking the following are
>> candidates to roll back to String:
>>
>>    public static String stripAccents(CharSequence input) {
>>    public static String capitalize(CharSequence cs) {
>>    public static String uncapitalize(CharSequence cs) {
>>

<snip>

>>
>> Basic rules being 'if String is returned, then String should be passed
>> in' and 'if other than String is returned, pass in CharSequence'.
>
> Like it. +1

I've rolled back capitalize and uncapitalize. I'm leaving stripAccents
as it sits on top of an underlying API that is CharSequence based -
ie) the JDK has already declared a CharSequence in; String out
behaviour.

Hen

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


Mime
View raw message