Alachisoft.NCache.Common.CaseInsensitiveMap Maven / Gradle / Ivy
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Alachisoft.NCache.Common;
import java.util.HashMap;
import java.util.Map;
public class CaseInsensitiveMap extends HashMap {
public CaseInsensitiveMap(Map extends String, ? extends Object> m) {
super(m);
}
@Override
public Object put(String key, Object value) {
return super.put(key.toLowerCase(), value);
}
public Object get(String key) {
return super.get((Object) key.toLowerCase());
}
}