Android Open Source - groceryhelper Item






From Project

Back to project page groceryhelper.

License

The source code is released under:

Apache License

If you think the Android project groceryhelper 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 com.munner.groceryhelper;
/*  w w w .j  av  a2  s. c o m*/
import android.os.Parcel;
import android.os.Parcelable;

public class Item implements Parcelable{

  double cost;
  String category;
  
  public Item(double cost, String category) {
    this.cost = cost;
    this.category = category;
  }
  
  public String getCategory() {
    return category;
  }
  
  public double getCost() {
    return cost;
  }

  @Override
  public int describeContents() {
    return 0;
  }

  @Override
  public void writeToParcel(Parcel dest, int flags) {
    dest.writeDouble(cost);
    dest.writeString(category);
  }

}




Java Source Code List

com.munner.groceryhelper.BuildConfig.java
com.munner.groceryhelper.ItemList.java
com.munner.groceryhelper.Item.java
com.munner.groceryhelper.ListActivity.java
com.munner.groceryhelper.MainActivity.java
com.munner.groceryhelper.Remove.java