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

xyz.migoo.framework.Vars Maven / Gradle / Ivy

There is a newer version: 5.0.0
Show newest version
package xyz.migoo.framework;

import com.alibaba.fastjson.JSONObject;

import java.util.HashMap;
import java.util.Map;

/**
 * @author xiaomi
 * @date 2019-11-22 23:48
 */
public class Vars {

    private static final Map VARS = new HashMap<>(16);

    static void add(String key, JSONObject vars){
        if (vars != null){
            VARS.put(key, vars);
        }
    }

    public static JSONObject get(String key){
        return VARS.get(key);
    }

    private Vars(){}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy