Skip to content

Glossary: Software Design Patterns in Java

Command

Also written: command pattern

A pattern that turns an action into an object with `run` and `undo`. Stored commands let you build an Undo button, a history or a queue.

Where the book teaches it

Related terms

Undo stackArrayDeque