Skip to content

Glossary: Software Design Patterns in Java

computeIfAbsent

A `Map` method that runs a lambda to create and store a value only when the key is missing. The event bus uses it to start a new empty listener list.

Where the book teaches it

Related terms

Event busCache