Skip to content

Glossary: Software Design Patterns in Java

Function (java.util.function.Function)

Also written: Function<Order, String>, apply

A Java functional interface for a function that takes one value and returns another, called with `apply`. It is the template method's hook in `makeReport`.

Where the book teaches it

Related terms

Functional interfaceHook