Tagged “Adapter”
2 articles with this tag.
- AdapterConvert an interface you cannot change into the one your code expects. A runnable Java 21 example wraps a legacy payment SDK, translating units, status codes and exceptions — plus class versus object adapters, trade-offs and interview questions.
- Adapter vs Decorator vs Proxy vs FacadeFour structural patterns that all wrap other objects. The one question that tells them apart, side-by-side Java sketches, and how to answer the classic interview question.