Part 4. Behavioral Patterns

Behavioral patterns are those patterns that are most specifically concerned with communication between objects. This chapter covers the following patterns:

  • Chain of Responsibility pattern. allows decoupling between objects by passing a request from one object to the next in a chain until the request is recognized.

  • Command pattern. utilizes simple objects to represent the execution of software commands and allows you to support logging and undoable operations.

  • Interpreter pattern. provides a definition of how to include language elements in a program.

  • Iterator pattern. formalizes the way we move through a list of data within a class.

  • Mediator pattern. defines how communication between objects can be simplified by using a ...

Get Java™ Design Patterns: A Tutorial now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.