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

com.github.yulichang.toolkit.FieldStringMap Maven / Gradle / Ivy

There is a newer version: 1.5.2
Show newest version
package com.github.yulichang.toolkit;

import java.util.HashMap;
import java.util.Locale;

/**
 * @author yulichang
 * @see HashMap
 * @since 1.4.8
 */
public class FieldStringMap extends HashMap {

    @Override
    public V get(Object key) {
        return super.get(key == null ? null : ((String) key).toUpperCase(Locale.ENGLISH));
    }

    @Override
    public boolean containsKey(Object key) {
        return super.containsKey(key == null ? null : ((String) key).toUpperCase(Locale.ENGLISH));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy