Adapter adaptation mode


In computer programming, the adapter pattern (sometimes called wrapper style or wrapper) adapts the interface of a class to what users expect. An adaptation allows classes that usually cannot work together because of incompatible interfaces to work together by wrapping the class's own interface in an existing class.
The adapter mode is mainly used when the method defined in the interface cannot meet the needs of customers, or the name of the method defined in the interface or the method interface conflicts with the needs of customers.