Android Open Source - lucene Matrix Bundler

From Project

Back to project page lucene.


The source code is released under:

GNU General Public License

If you think the Android project lucene listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

//from ww w  . jav  a  2s .co m
import android.os.Parcel;
import android.os.Parcelable;

public class MatrixBundler implements Parcelable {
    private Matrix mMatrix;

    public MatrixBundler(final Matrix m) {
        mMatrix = m;

    private MatrixBundler(final Parcel in) {
        final float[] values = new float[9];

        mMatrix = new Matrix();

    public int describeContents() {
        return 0;

    public void writeToParcel(Parcel out, int flags) {
        final float[] values = new float[9];

    public static final Parcelable.Creator<MatrixBundler> CREATOR = new Parcelable.Creator<MatrixBundler>() {
        public MatrixBundler createFromParcel(Parcel in) {
            return new MatrixBundler(in);
        public MatrixBundler[] newArray(int size) {
            return new MatrixBundler[size];

    public Matrix getMatrix() {
        return mMatrix;

    public void setMatrix(final Matrix matrix) {
        mMatrix = matrix;

Java Source Code List