All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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 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());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy