FileDocCategorySizeDatePackage
HistoryEntry.javaAPI DocAndroid 1.5 API1737Wed May 06 22:42:42 BST 2009com.android.calculator2

HistoryEntry

public class HistoryEntry extends Object

Fields Summary
private static final int
VERSION_1
private String
mBase
private String
mEdited
Constructors Summary
HistoryEntry(String str)


      
        mBase = str;
        clearEdited();
    
HistoryEntry(int version, DataInput in)

        if (version >= VERSION_1) {
            mBase   = in.readUTF();
            mEdited = in.readUTF();
            //Calculator.log("load " + mEdited);
        } else {
            throw new IOException("invalid version " + version);
        }
    
Methods Summary
voidclearEdited()

        mEdited = mBase;
    
java.lang.StringgetBase()

        return mBase;
    
java.lang.StringgetEdited()

        return mEdited;
    
voidsetEdited(java.lang.String edited)

        mEdited = edited;
    
public java.lang.StringtoString()

        return mBase;
    
voidwrite(java.io.DataOutput out)

        out.writeUTF(mBase);
        out.writeUTF(mEdited);
        //Calculator.log("save " + mEdited);