Alex Rivera | Logout

Is there a good way to have a Map<String, ?> get and put ignoring case?

Asked 2008-10-17T15:07:03.047
67

Is there a good way to have a Map<String, ?> get and put ignoring case?

Edit
Report

1 Answer

0

Check the accepted answer at the link below. How to check for key in a Map irrespective of the case?

Bottom line is "The simplest solution is to simply convert all inputs to uppercase (or lowercase) before inserting/checking. You could even write your own Map wrapper that would do this to ensure consistency."

answered 2013-03-29T07:43:53.210

Your Answer