Java’s functional Consumer interface
Leave a reply
Quite often, a Java Stream or other component needs an object passed thereto to perform some form of calculation or process, but when the method is complete, nothing returns from the tactic. this is often where Java’s functional Consumer interface comes in handy. According to JavaDoc, the patron interface accepts any object style as input. Continue Reading »