Back to project page Jello.
The source code is released under:
Apache License
If you think the Android project Jello listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.atteo.jello.space; /*ww w .j a va2 s . com*/ import com.google.inject.Inject; import com.google.inject.Singleton; import com.google.inject.name.Named; @Singleton public class AppendOnlyCacheNative implements AppendOnlyCache { static { System.loadLibrary("AppendOnlyCacheNative"); } @Inject public AppendOnlyCacheNative( @Named("appendOnlyCacheSize") final int appendOnlyCacheSize) { init(appendOnlyCacheSize); } public native int getBestId(short freeSpace); public native short getFreeSpace(int id); public native boolean isEmpty(); public native void update(int id, short freeSpace); private native void init(int appendOnlyCacheSize); }