On Sun, 2003-11-23 at 22:25, Brian S O'Neill wrote:
> This implementation converts the key to lowercase on every get and put,
> which adds a bit of object allocation overhead. Also, simply converting
> to lowercase does not make it fully case-insensitive. There is a comment
> in String.regionMatches that brings up something about the Georgian
> alphabet.
>
> What I always do when I want a case-insensitive map is to construct a
> TreeMap with String.CASE_INSENSITIVE_ORDER.
>
This Georgian issue could be avoided by allowing CaseInsensitiveHashMap
to restrict it's scope to Sql naming standards for columns and leaving
it in DbUtils.
-Janek
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
|