Let's say I have the following data structure like this:
LinkedHashMap<String, ArrayList<LinkedHashMap>> foodFamilies = new LinkedHashMap<>();
that looks something like this:
{Fruit = [{Name = Apple,
Color = },
{Name = Cherry,
Color = }],
Vegetables = [{Name = Beet,
Color = }]}
How can I elegantly insert the color “red” for every color of every food in each family?
Foodclass, then use a stream or Groovy closure iterator?