📄 wap2mobilemodel.java
字号:
package com.sxit.wap.wap2mobile;import java.sql.*;import java.util.*;import com.sxit.wap.common.*;import com.sxit.wap.exception.*;public class Wap2MobileModel implements java.io.Serializable { String mobileType = ""; String userAgent = ""; public Wap2MobileModel(String mobileType, String userAgent){ if (mobileType == null) mobileType = ""; this.mobileType = mobileType; if (userAgent == null) userAgent = ""; this.userAgent = userAgent; } public Wap2MobileModel(){ } public String getMobileType() { if (mobileType == null) mobileType = ""; return mobileType; } public String getUserAgent() { if (userAgent == null) userAgent = ""; return userAgent; } public void setMobileType(String mobileType) { this.mobileType = mobileType; } public void setUserAgent(String userAgent) { this.userAgent = userAgent; } public String toString() { String value = ""; value+= "mobileType=" + mobileType + "\n"; value+= "userAgent=" + userAgent + "\n"; return value; } public void copy(Wap2MobileModel other) { this.setMobileType(other.getMobileType()); this.setUserAgent(other.getUserAgent()); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -