Function:
Create a new interface(like a adapter or wrapper) between client and class of library. So when use another library, just need to modify the adapter without letting the client knows the change.
participants:
client IAdapter Adapter Adaptee
Summary:
Pattern Adapter can hide the detail of the library. Client only knows the interface IAdapter, knows nothing about how the Adapter does it.
Create a new interface(like a adapter or wrapper) between client and class of library. So when use another library, just need to modify the adapter without letting the client knows the change.
participants:
client IAdapter Adapter Adaptee
Summary:
Pattern Adapter can hide the detail of the library. Client only knows the interface IAdapter, knows nothing about how the Adapter does it.