// Path: app/src/main/java/com/gigabytedevelopersinc/app/calculator/BaseModule.java
// public enum Mode {
//     BINARY(0), DECIMAL(1), HEXADECIMAL(2);
// 
//     int quickSerializable;
// 
//     Mode(int num) {
//         this.quickSerializable = num;
//     }
// 
//     public int getQuickSerializable() {
//         return quickSerializable;
//     }
// }


import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import android.content.Context;
import com.gigabytedevelopersinc.app.calculator.BaseModule.Mode;

package com.gigabytedevelopersinc.app.calculator;




class Persist {
    private static final int LAST_VERSION = 3;
    private static final String FILE_NAME = "calculator.data";
    private Context mContext;

    History history = new History();
    private int mDeleteMode;
    private Mode mode;

    Persist(Context context) {
        this.mContext = context;
    }

    public void setDeleteMode(int mode) {
        mDeleteMode = mode;
    }

    public int getDeleteMode() {
        return mDeleteMode;
    }

    public void setMode(Mode mode) {
        this.mode = mode;
    }

// Path: app/src/main/java/com/gigabytedevelopersinc/app/calculator/BaseModule.java
// public enum Mode {
//     BINARY(0), DECIMAL(1), HEXADECIMAL(2);
// 
//     int quickSerializable;
// 
//     Mode(int num) {
//         this.quickSerializable = num;
//     }
// 
//     public int getQuickSerializable() {
//         return quickSerializable;
//     }
// }


// Path: app/src/main/java/com/gigabytedevelopersinc/app/calculator/Persist.java
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import android.content.Context;
import com.gigabytedevelopersinc.app.calculator.BaseModule.Mode;


package com.gigabytedevelopersinc.app.calculator;




class Persist {
    private static final int LAST_VERSION = 3;
    private static final String FILE_NAME = "calculator.data";
    private Context mContext;

    History history = new History();
    private int mDeleteMode;
    private Mode mode;

    Persist(Context context) {
        this.mContext = context;
    }

    public void setDeleteMode(int mode) {
        mDeleteMode = mode;
    }

    public int getDeleteMode() {
        return mDeleteMode;
    }

    public void setMode(Mode mode) {
        this.mode = mode;
    }

    public Mode getMode() {