Consumers – Functional-Style Programming
13.7 Consumers The Consumer<T> functional interface represents a consumer of values. From Table 13.6, we see that its functional method accept() has the type T -> void—that is, it takes an argument of type T and returns no value (void). Typically, it performs some operation on its argument object. Table 13.6 shows all the consumer … Read moreConsumers – Functional-Style Programming