mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 16:58:47 +00:00
4cd8149502
https://sonarcloud.io/organizations/iluwatar/rules?open=java%3AS5786&rule_key=java%3AS5786
title, category, language, tags
| title | category | language | tags | |
|---|---|---|---|---|
| Marker Interface | Structural | en |
|
Intent
Using empty interfaces as markers to distinguish special treated objects.
Class diagram
Applicability
Use the Marker Interface pattern when
- you want to identify the special objects from normal objects (to treat them differently)
- you want to mark that some object is available for certain sort of operations
