Skip to content
Branch: master
Find file History
Pull request Compare This branch is 252 commits behind iluwatar:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
etc
src
.gitignore
README.md
pom.xml

README.md

layout title folder permalink categories tags
pattern
Marker Interface
marker
/patterns/marker/
Design
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

You can’t perform that action at this time.