关于java容器的作为数据内存的情况
package test.com.erayt.eds.risk.service;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import com.erayt.eds.domain.risk.RiskLimitField;
public class Mapdata {
private Map <String,String> dataMap = new ConcurrentHashMap<String,String>();
/**
* @param args
*/
public String getValue(String key){
return dataMap.get(key);
}
public Map<String, String> getDataMap() {
return dataMap;
}
public void setDataMap(Map<String, String> dataMap) {
this.dataMap = dataMap;
}
public void putMapData(){
dataMap.put("111", "AAAA");
}
}
期待研究
欢迎关注公众号:Java后端技术全栈