I want to access java.util.HashMap without considering case of the key.
By this, I mean, if I add following entry to my HashMap:
java.util.HashMap<String, Object> myMap = new java.util.HashMap<String, Object>();
myMap.put("foo", new Foo()); // Note lower-case key used here
Then I should be able to get Foo object by following code:
Foo f = (Foo) myMap.get("FOO"); // Note UPPER-case key used here
Is this possible?
Thanks.
Ican beiorıdepending on the configuration of the underlying operating system.