#Spring in Action chapter 3
1 messages · Page 1 of 1 (latest)
the helper method was changed to accept Iterable<Ingredient> instead of List<Ingredient> because in chap 3 the data source is no longer a hardcoded list. using Iterable makes the method more flexible it can handle lists, sets, or any other iterable collection.
so basically the method in chap 3 is more flexible for any iterable collection. the version in chap 2 can only handle list types