Adapter შაბლონი საშუალებას აძლევს ობიექტებს შეუთავსებელი ინტერფეისებით ერთად იმუშაონ ერთი მათგანის სხვა მოსალოდნელი ინტერფეისით შებრუნებით. იგი ეს მოქმედებს როგორც თარჯიმანი ორ ინტერფეისს შორის, რაც შესაძლებელი ხდის ინტეგრაციას არსებული კოდის შეცვლის გარეშე.
რა აკეთებს Adapter შაბლონი
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
