KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > relique > jdbc > csv > KeyInsensitiveHashMap


1 /*
2  * Created on Oct 26, 2005
3  */

4 package org.relique.jdbc.csv;
5
6 import java.util.HashMap JavaDoc;
7
8 public class KeyInsensitiveHashMap extends HashMap JavaDoc {
9
10     public Object JavaDoc get(Object JavaDoc key) {
11         return super.get(((String JavaDoc)key).toLowerCase());
12     }
13
14     public Object JavaDoc put(Object JavaDoc key, Object JavaDoc value) {
15         return super.put(((String JavaDoc)key).toLowerCase(), value);
16     }
17
18         
19     
20     
21 }
22
Popular Tags