Fixed major counter-type collection bugs

This commit is contained in:
Treeku
2014-03-23 15:08:46 +00:00
parent d1fff9e069
commit efdb69ff57
2 changed files with 31 additions and 14 deletions
+14
View File
@@ -80,6 +80,20 @@ public class Stf extends Delta {
}
}
public String getString() {
synchronized(objectMutex) {
return ("@" + stfFilename + ":" + stfName);
}
}
public void setString(String stf) {
synchronized(objectMutex) {
stf = stf.replace("@", "");
stfFilename.set(stf.split(":")[0]);
stfName.set(stf.split(":")[1]);
}
}
public byte[] getBytes() {
synchronized(objectMutex) {
int size = stfFilename.getBytes().length + 4 + stfName.getBytes().length;