Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 894 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 894 Bytes
layout title folder permalink categories tags
pattern
Marker Interface
marker
/patterns/marker/
Other
Java
Difficulty-Beginner

Intent

Using empty interfaces as markers to distinguish special treated objects.

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