Skip to content

Instantly share code, notes, and snippets.

@sanchikagn
Created April 26, 2019 06:41
Show Gist options
  • Save sanchikagn/3171e2fa1811e49379cf330622d26ba0 to your computer and use it in GitHub Desktop.
Save sanchikagn/3171e2fa1811e49379cf330622d26ba0 to your computer and use it in GitHub Desktop.
public class FoodFacts {
private int servingSize = -1;
private int netWeight = -1;
private String packType = "";
private int calories;
private int sodium;
private int carbohydrate;
public FoodFacts() {}
public void setServingSize(int servingSize) {
this.servingSize = servingSize;
}
public void setNetWeight(int netWeight) {
this.netWeight = netWeight;
}
public void setPackType(String packType) {
this.packType = packType;
}
public void setCalories(int calories) {
this.calories = calories;
}
public void setSodium(int sodium) {
this.sodium = sodium;
}
public void setCarbohydrate(int carbohydrate) {
this.carbohydrate = carbohydrate;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment