measureresult.java
来自「利用Java Socket写的一段通讯协议」· Java 代码 · 共 34 行
JAVA
34 行
package com.ict.netcom2.result;
public class MeasureResult {
protected int taskId;
protected String probeIp;
protected int taskType;
public void setTaskType(int taskType) {
this.taskType = taskType;
}
public void setTaskId(int taskId) {
this.taskId = taskId;
}
public void setProbeIp(String probeIp) {
this.probeIp = probeIp;
}
public String toString() {
if (this instanceof HttpPerfResult) {
return ((HttpPerfResult)this).toString();
} else if (this instanceof PasvEthResult) {
return "todo: PasvEthResult toString too long.";
}
return this.toString();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?