va1m 5cf2fe009b
📍Use lombok, reformat, and optimize the code (#1560)
* Use lombok, reformat, and optimize the code

* Fix merge conflicts and some sonar issues

Co-authored-by: va1m <va1m@email.com>
2021-03-13 14:19:21 +02:00
..
2019-12-07 18:03:49 +02:00
2017-05-03 20:51:51 +02:00
2021-02-14 11:57:57 +02:00
2020-07-06 13:31:07 +03:00

layout, title, folder, permalink, categories, tags
layout title folder permalink categories tags
pattern Marker Interface marker /patterns/marker/ Structural
Decoupling

Intent

Using empty interfaces as markers to distinguish special treated objects.

Class diagram

alt text

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

Real world examples

Credits