Equals and hashCode in ListItem and FoodItem overridden.