📄 speedtestdata.java
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space
// Source File Name: SpeedTestData.java
package org.gudy.azureus2.ui.swt.speedtest;
import com.aelitis.azureus.core.networkmanager.admin.NetworkAdminSpeedTesterResult;
public class SpeedTestData
{
private static SpeedTestData ourInstance = new SpeedTestData();
private String lastTestData;
private NetworkAdminSpeedTesterResult lastResult;
private int highestDownloadOnlyResult;
private int lastUploadOnlyResult;
public static SpeedTestData getInstance()
{
return ourInstance;
}
private SpeedTestData()
{
}
public void setLastTestData(String text)
{
lastTestData = text;
}
public String getLastTestData()
{
return lastTestData;
}
public void setResult(NetworkAdminSpeedTesterResult result)
{
lastResult = result;
}
public NetworkAdminSpeedTesterResult getLastResult()
{
return lastResult;
}
public void setHighestDownloadResult(int currDownRateInKBytePerSec)
{
if (highestDownloadOnlyResult < currDownRateInKBytePerSec)
highestDownloadOnlyResult = currDownRateInKBytePerSec;
}
public int getHightestDownloadResult()
{
return highestDownloadOnlyResult;
}
public void setLastUploadOnlyResult(int currUpRateInKBytesPerSec)
{
if (currUpRateInKBytesPerSec < 20)
currUpRateInKBytesPerSec = 20;
lastUploadOnlyResult = currUpRateInKBytesPerSec;
}
public int getLastUploadOnlyResult()
{
return lastUploadOnlyResult;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -