The Java lambda syntax allows single line statements or statement blocks which can be arbitrarily long. So the isBark predicate is good and reusable but you could stuff as many lines as you like into the lamba:
Saving fish by writing code! Applications developer in fisheries, specializing in webapps and moving 'enterprise-y' legacy systems to modern agile systems - Email or tweet me if you want to talk!
The Java lambda syntax allows single line statements or statement blocks which can be arbitrarily long. So the
isBark
predicate is good and reusable but you could stuff as many lines as you like into the lamba:That is true, and reminds me of a change I had thought of for my single line lambda demo. brb, editing example