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; //from w ww . j a v a 2s . com import com.google.inject.Inject; import com.google.inject.name.Named; public class NextFitHistogramNative implements NextFitHistogram { static { System.loadLibrary("NextFitHistogramNative"); } @Inject public NextFitHistogramNative(@Named("pageSize") final short pageSize, @Named("nextFitHistogramClasses") final int histogramClasses) { init(pageSize, histogramClasses); } public native short getClassSize(); public native int getWitness(short freeSpace); public native void update(int id, short previousFreeSpace, short freeSpace); private native void init(short pageSize, int histogramClasses); }