-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
missing updated form of filterByType() method in DesignTacoController in chapter 3 in the book #11
Comments
Yep, I also found the same issue that's not a big problem. Hence, I change the code as below snippet as work around |
@AndyLau223 there's another issue in page 76 with the While calling, |
@charlie39 You need to change the Taco.class entity by making |
Leaving below code to stream iterable for anyone that might need it: private Iterable<Ingredient> filterByType(Iterable<Ingredient> ingredients, Type type) {
return StreamSupport.stream(ingredients.spliterator(), false).filter(x -> x.getType().equals(type))
.collect(Collectors.toList()); |
After introducing IngredientRepository in chapter 3, the
in DesignController.java should be updated to to take an
Iterable<Ingredient>
object instead of
List<Ingredient>
in given in the sample code. But snippetfor such change is missing from the book.
Should have listing showing the change right after Listing 3.7
The text was updated successfully, but these errors were encountered: