Adapter pattern omogućava objektima s nekompatibilnim sučeljima da rade zajedno tako što omotava jedan s sučeljem koje drugi očekuje. Djeluje kao prevoditelj između dva sučelja, omogućavajući integraciju bez mijenjanja postojećeg koda.
Što Adapter pattern čini
ADAPTER → convert one interface into another that a client expects (a "translator"):
→ wrap an object whose interface is INCOMPATIBLE, exposing the interface the client needs
→ the adapter translates calls/data between the two interfaces
→ makes incompatible things work together WITHOUT changing either's code
