Mönster som binder ihop och grupperar objekt. (Wikipedia)
’adapts’ one interface for a class into one that a client expects
Use multiple adapters for debugging purposes.
Retrofit Interface Pattern
An adapter used as a new interface for multiple classes at the same time.
a version of the Composite pattern with methods for aggregation of children
decouple an abstraction from its implementation so that the two can vary independently
An intermediate ”lookup” object contains the real location of an object.
a tree structure of objects where every object has the same interface
add additional functionality to a class at runtime where subclassing would result in an exponential rise of new classes
aka. Framework – hide complex code behind a simple interface
create a simplified interface of an existing interface to ease usage for common tasks
a high quantity of objects share a common properties object to save space
Pipes and filters
a chain of processes where the output of each process is the input of the next
Private class data pattern
restrict accessor/mutator access
a class functioning as an interface to another thing