Skip to content
Snippets Groups Projects
Commit 7652ca5e authored by HSoreide's avatar HSoreide
Browse files

Add the Enum classes FoodItem and MeasuringUnit

parent 5afe7e0b
No related branches found
No related tags found
1 merge request!7Create food and recipe classes with tests
package no.ntnu.idatt1002.demo.data.recipes;
public enum FoodItem {
ONION("onion"),
MINCED_MEAT("minced meat"),
POTATO("potatoes"),
YELLOW_CHEESE("yellow cheese"),
WHEAT_FLOUR("wheat flour"),
MILK("milk"),
TOMATO("tomato"),
ORANGE("orange"),
LEMON("lemon"),
SALSA_SAUCE("salsa sauce")
;
public final String label;
FoodItem(String label) {
this.label = label;
}
}
package no.ntnu.idatt1002.demo.data.recipes;
public enum MeasuringUnit {
DL("dl."),
L("l."),
TSP("tsp."),
TBS("tbs."),
GR("gr."),
KG("kg.");
public final String label;
MeasuringUnit(String label) {
this.label = label;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment