📄 message.java
字号:
package mypkg;import java.util.ArrayList;import java.util.List;public class Message { private String head; private List body; private int type; public Message(){ setType(-1); setHead(""); body = new ArrayList(); } public Message(String head,ArrayList body){ this.head = head; this.body = body; if(head.equals(Utility.MSEG)){ setType(Utility.MSG); } if(head.equals(Utility.QERY)){ setType(Utility.QRY); } } public int getType() { return type; } public void setType(int type) { this.type = type; } public String getHead() { return head; } public void setHead(String head) { this.head = head; } public List getBody() { return body; } public void setBody(List body) { this.body = body; } public String toString(){ return this.head + "|" + this.body; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -