Java Glossary : Adapter Classes

In java programming language, adapter class is used to implement an interface having a set of dummy methods.

Java Glossary : Adapter Classes

Java Glossary : Adapter Classes

     

In java programming language, adapter class is used to implement an interface having a set of dummy methods. The developer can then further subclass the adapter class so that he can override to the methods he requires. Implementing an interface directly, requires to write all the dummy methods. In general an adapter class is used to rapidly construct your own Listener class to field events.

Java programming language also have a design adapter named adapter. The Adapter design pattern is also used to join to two unrelated interfaces so that can work together. The joint between these two interfaces is termed as Adapter. This is something like the conversion of interface of one class into interface. This is done by using an Adapter.