coffee_fan (26) [Avatar] Offline
It is not hard to create it, but for folks that are following along it is one annoyance.
v8 (6) [Avatar] Offline
filterByType method is included in the DesignTacoController source code.
I assume the author didn't include it in the listing as it brings no value for the understanding of the concepts.

	private List<Ingredient> filterByType(List<Ingredient> ingredients, Type type) {
				.filter(x -> x.getType().equals(type))
habuma (277) [Avatar] Offline
That's right...I left it out of the manuscript because it didn't pertain directly to the subject. It's fairly brief, so I guess I could consider working it in. But for space reasons and subject-focus reasons, I can't practically include *ALL* of the code in the book.
190896 (14) [Avatar] Offline
Agree, I would put it in the book. There's nothing worse than following along and then finding it doesn't compile.
johannkokos (4) [Avatar] Offline
I hope the author mentioned the the function could be found in the source code. A simple note is enough.
409563 (4) [Avatar] Offline
Also these in the same listing:

- `package tacos.web;` should be `package tacos;`
- `import tacos.Taco;` this import cannot be resolved.