001    package com.google.gwt.maps.client.weatherlib;
002    
003    /**
004     * The temperature unit displayed by the weather layer. <br>
005     * <br>
006     * See <a href=
007     * "https://developers.google.com/maps/documentation/javascript/reference#TemperatureUnit"
008     * >TemperatureUnit API Doc</a>
009     */
010    public enum TemperatureUnit {
011    
012            /**
013             * Specifies that temperatures should be displayed in degrees Celsius.
014             */
015            CELSIUS("c"),
016    
017            /**
018             * Specifies that temperatures should be displayed in degrees Fahrenheit.
019             */
020            FAHRENHEIT("f");
021    
022            private final String value;
023            
024            private TemperatureUnit(String value) {
025                    this.value = value;
026            }
027            
028            public String value() {
029                    return value;
030            }
031            public String toString() {
032                    return name();
033            }
034    
035    }