Skip to content

Glossary: Software Design Patterns in Java

Consumer

Also written: Consumer<Order>

A Java functional interface for a function that takes a value and returns nothing, called with `accept`. Observer listeners are `Consumer<Order>`.

Where the book teaches it

Related terms

ListenerFunctional interface