📄 datalist.java
字号:
package com.gctech.sms.gateway.basic;
import java.util.Map;
import java.util.HashMap;
import java.util.List;
import java.util.Vector;
import com.gctech.sms.msg.MOInfo;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2004</p>
* <p>Company: gctech</p>
* @author 王红宝
* @version $Id: DataList.java,v 1.2 2004/11/30 01:36:46 lijz Exp $
*/
public class DataList {
List moList = null;
Map mtSendOutList = null;
public Map getAllMt(){
return mtSendOutList;
}
public boolean addMo(MOInfo mo){
return moList.add(mo);
}
public boolean addMos(List list)
{
synchronized(moList)
{
return moList.addAll(list);
}
}
private DataList() {
mtSendOutList = new HashMap();
moList = new Vector();
}
private static DataList singleton;
public static DataList getInstance(){
if ( singleton == null )
singleton = new DataList();
return singleton;
}
public Object putMtSendOut(int seq, String msgId){
return mtSendOutList.put(new Integer(seq), msgId);
}
public String removeMtBySeq(int seq){
return (String)mtSendOutList.remove(new Integer(seq));
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -