Android Open Source - generalsbuzz Month Year Parcel






From Project

Back to project page generalsbuzz.

License

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.

Java Source Code

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();
  }
}




Java Source Code List

me.kworden.wlcalendar2.BuildConfig.java
me.kworden.wlcalendar2.BuildConfig.java
me.kworden.wlcalendar2.MainActivity.java
me.kworden.wlcalendar2.SettingsActivity.java
me.kworden.wlcalendar2.adapter.EventAdapter.java
me.kworden.wlcalendar2.async.CheckLocalDataTask.java
me.kworden.wlcalendar2.async.ParseDataTask.java
me.kworden.wlcalendar2.async.ReadLocalDataTask.java
me.kworden.wlcalendar2.async.RequestRemoteDataTask.java
me.kworden.wlcalendar2.async.StoreDataTask.java
me.kworden.wlcalendar2.fragment.EventDisplayFragment.java
me.kworden.wlcalendar2.fragment.EventInfoFragment.java
me.kworden.wlcalendar2.fragment.SettingsFragment.java
me.kworden.wlcalendar2.receiver.CheckLocalDataReceiver.java
me.kworden.wlcalendar2.receiver.RequestRemoteDataReceiver.java
me.kworden.wlcalendar2.receiver.UpdateRowsReceiver.java
me.kworden.wlcalendar2.struct.MonthYearParcel.java
me.kworden.wlcalendar2.struct.WLEventClassifier.java
me.kworden.wlcalendar2.struct.WLEventLinebreak.java
me.kworden.wlcalendar2.struct.WLEvent.java
me.kworden.wlcalendar2.struct.WLHeader.java
me.kworden.wlcalendar2.util.APP.java
me.kworden.wlcalendar2.util.BROADCAST.java
me.kworden.wlcalendar2.util.MD5.java
me.kworden.wlcalendar2.util.PATTERNS.java
me.kworden.wlcalendar2.util.STATUS.java