io.polaris.core.map.CaseCamelMap Maven / Gradle / Ivy
package io.polaris.core.map;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.function.Function;
import java.util.function.Supplier;
import io.polaris.core.string.StringCases;
/**
* @author Qt
* @since 1.8
*/
@SuppressWarnings({"rawtypes", "unchecked"})
public class CaseCamelMap extends TransformMap {
private static final Function TRANSFORMER = key -> (key instanceof CharSequence ? StringCases.underlineToCamelCase((CharSequence) key) : key);
public CaseCamelMap(Supplier