-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
basics for curated food recommendations #25
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
app/src/main/java/com/example/nutritionapp/other/CuratedFoods.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.example.nutritionapp.other; | ||
|
||
import java.util.ArrayList; | ||
import java.util.HashMap; | ||
|
||
public class CuratedFoods { | ||
static HashMap<NutritionElement, String[]> curated = new HashMap<>(); | ||
|
||
static String[] VITAMIN_A_LIST = { "Carrot", "Sweet Potato", "Spinach", "Broccoli", "Pumpkin", "Lettuce" }; | ||
static String[] VITAMIN_C_LIST = { "Kiwi", "Orange", "Banana", "Apple", "Peas"}; | ||
static String[] VITAMIN_B6_LIST = { "Salmon" }; | ||
static String[] VITAMIN_D_LIST = { "Egg", "Cod", "Sun" }; | ||
static String[] VITAMIN_E_LIST = { "Sunflower Seeds", "Almonds", "Avocado", "Peanuts" }; | ||
static String[] VITAMIN_K_LIST = { "Lettuce", "Spinach" }; | ||
static String[] IRON_LIST = { "Oatmeal", "Tofu", "Red Meat", "Dark Chocolate" }; | ||
static String[] MAGNESIUM_LIST = { "Oatmeal", "Banana", "Dark Chocolate", "Nuts", "Tofu" }; | ||
static String[] CALCIUM_LIST = { "Mild", "Cheese", "Yogurt" }; | ||
static String[] SELENIUM_LIST = { "Carrot" }; | ||
static String[] POTASSIUM_LIST = { "Apple" }; | ||
|
||
static{ | ||
curated.put(NutritionElement.VITAMIN_A, VITAMIN_A_LIST ); | ||
curated.put(NutritionElement.VITAMIN_C, VITAMIN_C_LIST ); | ||
curated.put(NutritionElement.VITAMIN_D, VITAMIN_D_LIST ); | ||
curated.put(NutritionElement.VITAMIN_E, VITAMIN_E_LIST ); | ||
curated.put(NutritionElement.VITAMIN_K, VITAMIN_K_LIST ); | ||
curated.put(NutritionElement.VITAMIN_B6, VITAMIN_B6_LIST); | ||
curated.put(NutritionElement.IRON, IRON_LIST ); | ||
curated.put(NutritionElement.MAGNESIUM, MAGNESIUM_LIST ); | ||
curated.put(NutritionElement.CALCIUM, CALCIUM_LIST ); | ||
curated.put(NutritionElement.POTASSIUM, POTASSIUM_LIST ); | ||
curated.put(NutritionElement.SELENIUM, SELENIUM_LIST ); | ||
} | ||
public static ArrayList<Food> foodsForNutrition(NutritionElement el){ | ||
ArrayList<Food> foods = new ArrayList<>(); | ||
return foods; | ||
} | ||
} |