commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject [codec][lang] LetterCase proposal
Date Thu, 04 Apr 2013 13:48:52 GMT
Hi All:

I do not like using a boolean to say uppercase vs. lowercase, you can't
tell what the code does when you see

you.doIt("Foo", true)

I'd like to use an Enum:

you.doIt("Foo", LetterCase.UPPER);

Here is what it would look like in [codec]: http://pastebin.com/HcyiqgCP

Thoughts?

How about doing the same in [lang]?

Thoughts?

Thank you,
Gary

-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message