Just formatting App classes to be like the other class files on the project
This commit is contained in:
@ -1,23 +1,21 @@
|
||||
package com.iluwatar;
|
||||
|
||||
/**
|
||||
*
|
||||
* There are two variations of the Adapter pattern: The
|
||||
* class adapter implements the adaptee's interface whereas
|
||||
* the object adapter uses composition to contain the adaptee
|
||||
* in the adapter object. This example uses the object adapter
|
||||
* approach.
|
||||
*
|
||||
* The Adapter (GnomeEngineer) converts the interface of the
|
||||
* target class (GoblinGlider) into a suitable one expected
|
||||
* by the client (GnomeEngineeringManager).
|
||||
*
|
||||
* There are two variations of the Adapter pattern: The class adapter implements
|
||||
* the adaptee's interface whereas the object adapter uses composition to
|
||||
* contain the adaptee in the adapter object. This example uses the object
|
||||
* adapter approach.
|
||||
*
|
||||
* The Adapter (GnomeEngineer) converts the interface of the target class
|
||||
* (GoblinGlider) into a suitable one expected by the client
|
||||
* (GnomeEngineeringManager).
|
||||
*
|
||||
*/
|
||||
public class App
|
||||
{
|
||||
public static void main( String[] args )
|
||||
{
|
||||
GnomeEngineeringManager manager = new GnomeEngineeringManager();
|
||||
manager.operateDevice();
|
||||
public class App {
|
||||
|
||||
public static void main(String[] args) {
|
||||
GnomeEngineeringManager manager = new GnomeEngineeringManager();
|
||||
manager.operateDevice();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user