posted 2 years ago
I don't have the book, but based on your input I agree.
One more thing: to avoid confusing, please do not use K(ey) / V(alue) type parameters for BiConsumer.
Consumer and BiConsumer may accept some parameter(s), so, a plain parameter usually denoted T(ype), and if you need a second, then used the next letter in the alphabet U, then V, and so on...
These declarations are better IMHO
P.S. this is just a convention, not mandatory, simply to avoid confusion.
<K,V> things are applicable to Map, HashMap, etc..