package com.zph.util;
import java.util.HashMap;
import java.util.Map;
/**
* @author shaevel
*
*/
public class MapUtil {
public static Map<String, Object> Map_Info = new HashMap<String,Object>();
public static void addObject(String id, Object o){
Map_Info.put(id, o);
System.out.println("============== size: " + Map_Info.size() + " ================");
}
public static void moveObject(String id){
if(Map_Info.get(id) != null){
Map_Info.remove(id);
}
}
public static Object getObject(String id){
if(Map_Info.get(id) != null){
return Map_Info.get(id);
}else{
return "";
}
}
}