Skip to content

Glossary: Software Design Patterns in Java

Strategy

Also written: strategy pattern

One interchangeable way of doing a job: all strategies share a shape, so the code using one doesn't care which it gets. In Java it's usually a lambda or method reference.

Where the book teaches it

Related terms

ComparatorDoubleUnaryOperatorLambda