forked from stefatorus/LagAssist
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
824 B
44 lines
824 B
3 years ago
|
package com.entryrise.lagassist.minebench;
|
||
4 years ago
|
|
||
|
public class BenchResponse {
|
||
|
|
||
|
private int singlethread;
|
||
|
private int multithread;
|
||
|
|
||
|
public BenchResponse(int sth, int mth) {
|
||
|
singlethread = sth;
|
||
|
multithread = mth;
|
||
|
}
|
||
|
|
||
|
public int getMultithread() {
|
||
|
return multithread;
|
||
|
}
|
||
|
|
||
|
public void setMultithread(int multithread) {
|
||
|
this.multithread = multithread;
|
||
|
}
|
||
|
|
||
|
public int getSinglethread() {
|
||
|
return singlethread;
|
||
|
}
|
||
|
|
||
|
public String getStringifiedSth() {
|
||
|
if (singlethread < 0) {
|
||
|
return "Unknown Score";
|
||
|
}
|
||
|
return String.valueOf(singlethread);
|
||
|
}
|
||
|
|
||
|
public String getStringifiedMth() {
|
||
|
if (multithread < 0) {
|
||
|
return "Unknown Score";
|
||
|
}
|
||
|
return String.valueOf(multithread);
|
||
|
}
|
||
|
|
||
|
public void setSinglethread(int singlethread) {
|
||
|
this.singlethread = singlethread;
|
||
|
}
|
||
|
|
||
|
}
|