coffee_fan (26) [Avatar] Offline
#1
It is not hard to create it, but for folks that are following along it is one annoyance.
v8 (6) [Avatar] Offline
#2
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) {
		
		return ingredients.stream()
				.filter(x -> x.getType().equals(type))
				.collect(Collectors.toList());
		
	}
habuma (277) [Avatar] Offline
#3
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
#4
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
#5
I hope the author mentioned the the function could be found in the source code. A simple note is enough.
409563 (4) [Avatar] Offline
#6
Also these in the same listing:

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