Back to project page utexas-utilities.
The source code is released under:
Apache License
If you think the Android project utexas-utilities 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.nasageek.utexasutilities.model; /*from w w w . j a va 2s . c o m*/ import android.os.Parcel; import android.os.Parcelable; import java.io.Serializable; public class Transaction implements Parcelable, Serializable { private static final long serialVersionUID = 1L; private String cost, reason, date; public static Parcelable.Creator<Transaction> CREATOR = new Parcelable.Creator<Transaction>() { @Override public Transaction createFromParcel(Parcel source) { return new Transaction(source); } @Override public Transaction[] newArray(int size) { return new Transaction[size]; } }; public Transaction(Parcel in) { reason = in.readString(); cost = in.readString(); date = in.readString(); } public Transaction(String reason, String cost, String date) { this.reason = reason; this.cost = cost; this.date = date; } public String getReason() { return this.reason; } public String getCost() { return this.cost; } public String getDate() { return this.date; } @Override public int describeContents() { return 0; } @Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(reason); dest.writeString(cost); dest.writeString(date); } }