@@ -0,0 +1,1080 @@
+/**%0A * @file TemperatureClassReporter.java%0A * @author Valery Samovich%0A * @version 1%0A * @date 2015/01/09%0A */%0A%0Apackage com.samovich.specialized.patterns.adapter;%0A%0A/*%0A * Example of the class adapter. If a temperature is in Celcius,%0A * TemperatureClassReporter utilizes the temperatureInC value from%0A * CelciusReporter. Fahrenheit requests are internally handled in Celcius.%0A */%0Apublic class TemperatureClassReporter extends CelsiusReporter implements TemperatureInfo %7B%0A%0A%0A    @Override%0A    public double getTemperatureInF() %7B%0A        return cToF(temperatureInC);%0A    %7D%0A%0A    @Override%0A    public void setGetTemperatureInF(double temperatureInF) %7B%0A        this.temperatureInC = fToC(temperatureInF);%0A    %7D%0A%0A    @Override%0A    public double getGetTemperatureInC() %7B%0A        return temperatureInC;%0A    %7D%0A%0A    @Override%0A    public void setTemperatureInC(double temperatureInC) %7B%0A        this.temperatureInC = temperatureInC;%0A    %7D%0A%0A    private double fToC(double f) %7B%0A        return ((f - 32) * 5 / 9);%0A    %7D%0A%0A    private double cToF(double c) %7B%0A        return ((c * 5 / 9) + 32);%0A    %7D%0A%0A%7D%0A

Add the class adapter