mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 06:58:54 +00:00
932836f68b
* update license plugin * suppress linelength and emptylineseparator rules * fix checkstyle error Co-authored-by: Subhrodip Mohanta <hello@subho.xyz>
layout, title, folder, permalink, categories, language, tags
| layout | title | folder | permalink | categories | language | tags | |
|---|---|---|---|---|---|---|---|
| pattern | Marker Interface | marker | /patterns/marker/ | 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
