Skip to content

Glossary: Kotlin Basics

exhaustive

A `when` that covers every possible value, such as every enum value or every sealed subclass. It then needs no `else`, and the compiler complains if you add a case and forget a branch.

Where the book teaches it

Related terms

whensealed classenum class