Removed z.exp, changed Delta

This commit is contained in:
Treeku
2014-03-03 19:52:23 +00:00
parent 7654f8298b
commit 2b20d1ee6a
63 changed files with 13 additions and 10339 deletions
+13 -5
View File
@@ -23,18 +23,22 @@ package resources.objects;
import java.nio.ByteBuffer;
import org.apache.mina.core.buffer.SimpleBufferAllocator;
import org.apache.mina.core.buffer.IoBuffer;
import com.sleepycat.persist.model.NotPersistent;
import com.sleepycat.persist.model.Persistent;
import resources.common.StringUtilities;
@Persistent
public abstract class Delta implements IDelta {
public Delta() { }
@NotPersistent
protected final Object objectMutex;
protected final Object objectMutex = new Object();
public SimpleBufferAllocator bufferPool = new SimpleBufferAllocator();
public Delta() {
objectMutex = new Object();
}
protected String getAsciiString(ByteBuffer buffer) {
return StringUtilities.getAsciiString(buffer);
@@ -56,4 +60,8 @@ public abstract class Delta implements IDelta {
return ((byte) ((variable) ? 1 : 0));
}
public static IoBuffer createBuffer(int size) {
return Baseline.createBuffer(size);
}
}