package compbio.beans; import java.util.HashMap; import java.util.Map; public class UserBean { private String ip; private Map mainInfo; // store jobid, date start and // sequence public UserBean(String ip) { this.ip = ip; mainInfo = new HashMap(); } public String getIp() { return ip; } public void setMainInfo(String jobid, String date, String sequence) { if (mainInfo == null) mainInfo = new HashMap(); mainInfo.put(jobid, new String[] { date, sequence }); } public void setMainInfo(Map info) { if (mainInfo == null) mainInfo = new HashMap(); mainInfo = info; } public Map getMainInfo() { return mainInfo; } }