关于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,Map,dataMap,eds,内存,import,public 来源: https://blog.51cto.com/10983206/2564411