Skip to content

Glossary: Software Design Patterns in Java

enum

Also written: enumeration

A Java type with a fixed set of constants. A single-constant enum is the simplest safe singleton.

Where the book teaches it

Related terms

Singleton