contacttag.java
来自「The source code for this package is loca」· Java 代码 · 共 54 行
JAVA
54 行
/* * ContactTag.java * * Created on October 4, 2002, 7:17 PM */package gov.nist.sip.instantmessaging.presence.cpimparser;/** * * @author deruelle * @version 1.0 */public class ContactTag { private float priority; private String contact; /** Creates new ContactTag */ public ContactTag() { priority=-1; contact=null; } public void setPriority(float priority) { this.priority=priority; } public float getPriority() { return priority; } public void setContact(String contact) { this.contact=contact; } public String getContact() { return contact; } public String toString() { String result="<contact "; if (priority!=-1) result+="priority=\""+priority+"\""; result+=" >"; if (contact!=null) result+=contact; result+="</contact>\n"; return result; } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?