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

com.zys.mybatis.crud.Config Maven / Gradle / Ivy

There is a newer version: 0.2.7
Show newest version
package com.zys.mybatis.crud;

import com.zys.mybatis.converter.DefaultValue;
import com.zys.mybatis.converter.impl.LocalDateDVImpl;
import com.zys.mybatis.converter.impl.LocalDateTimeDVImpl;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author zys
 * @version 1.0
 * @date 2021/3/26 10:08
 */
public class Config {

    public static final Map>,DefaultValue> valueMap = new ConcurrentHashMap<>();

    static {
        valueMap.put(LocalDateDVImpl.class,new LocalDateDVImpl());
        valueMap.put(LocalDateTimeDVImpl.class,new LocalDateTimeDVImpl());
    }

    public static  T getDefaultValue(Class aClass){
        return (T)valueMap.get(aClass);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy