X Tutup
Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1003 Bytes

File metadata and controls

31 lines (23 loc) · 1003 Bytes
layout pattern
title Marker Interface
folder marker
permalink /patterns/marker/
categories Structural
language en
tags
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

X Tutup