// Path: app/src/main/java/com/waynedgrant/cirrus/units/TemperatureUnit.java
// public enum TemperatureUnit {
//     CELSIUS("Celsius (°C)"),
//     FAHRENHEIT("Fahrenheit (°F)");
// 
//     private String description;
// 
//     TemperatureUnit(String description) {
//         this.description = description;
//     }
// 
//     public String toString() {
//         return description;
//     }
// }


import com.waynedgrant.cirrus.units.TemperatureUnit;
import java.math.BigDecimal;

/* Copyright 2017 Wayne D Grant (www.waynedgrant.com)
   Licensed under the MIT License */

package com.waynedgrant.cirrus.measures;



public class Temperature {
    private BigDecimal celsius;
    private BigDecimal fahrenheit;

    public Temperature(BigDecimal celsius) {
        this.celsius = celsius;
        this.fahrenheit = (celsius.multiply(new BigDecimal("1.8"))).add(new BigDecimal("32"));
    }


// Path: app/src/main/java/com/waynedgrant/cirrus/units/TemperatureUnit.java
// public enum TemperatureUnit {
//     CELSIUS("Celsius (°C)"),
//     FAHRENHEIT("Fahrenheit (°F)");
// 
//     private String description;
// 
//     TemperatureUnit(String description) {
//         this.description = description;
//     }
// 
//     public String toString() {
//         return description;
//     }
// }


// Path: app/src/main/java/com/waynedgrant/cirrus/measures/Temperature.java
import com.waynedgrant.cirrus.units.TemperatureUnit;
import java.math.BigDecimal;

/* Copyright 2017 Wayne D Grant (www.waynedgrant.com)
   Licensed under the MIT License */

package com.waynedgrant.cirrus.measures;



public class Temperature {
    private BigDecimal celsius;
    private BigDecimal fahrenheit;

    public Temperature(BigDecimal celsius) {
        this.celsius = celsius;
        this.fahrenheit = (celsius.multiply(new BigDecimal("1.8"))).add(new BigDecimal("32"));
    }


    public BigDecimal getValue(TemperatureUnit unit) {
