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 (5) [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 (13) [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.