Back to project page generalsbuzz.
The source code is released under:
MIT License
If you think the Android project generalsbuzz 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 me.kworden.wlcalendar2.struct; //w w w .j a v a 2 s.c om import android.os.Parcel; import android.os.Parcelable; public class MonthYearParcel implements Parcelable { public String month, year; public MonthYearParcel(String p_month, String p_year) { month = p_month; year = p_year; } public String getAsFileName() { return month + "-" + year + ".raw"; } @Override public int describeContents() { return 0; } @Override public void writeToParcel(Parcel p_dest, int p_flags) { p_dest.writeString(month); p_dest.writeString(year); } public static final Parcelable.Creator<MonthYearParcel> CREATOR = new Parcelable.Creator<MonthYearParcel>() { public MonthYearParcel createFromParcel(Parcel in) { return new MonthYearParcel(in); } public MonthYearParcel[] newArray(int size) { return new MonthYearParcel[size]; } }; private MonthYearParcel(Parcel p_in) { month = p_in.readString(); year = p_in.readString(); } }