Follow us on GitHub

com.google.gwt.maps.client.weatherlib
Enum TemperatureUnit

java.lang.Object
  extended by java.lang.Enum<TemperatureUnit>
      extended by com.google.gwt.maps.client.weatherlib.TemperatureUnit
All Implemented Interfaces:
Serializable, Comparable<TemperatureUnit>

public enum TemperatureUnit
extends Enum<TemperatureUnit>

The temperature unit displayed by the weather layer.

See TemperatureUnit API Doc


Enum Constant Summary
CELSIUS
          Specifies that temperatures should be displayed in degrees Celsius.
FAHRENHEIT
          Specifies that temperatures should be displayed in degrees Fahrenheit.
 
Method Summary
 String toString()
           
 String value()
           
static TemperatureUnit valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TemperatureUnit[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CELSIUS

public static final TemperatureUnit CELSIUS
Specifies that temperatures should be displayed in degrees Celsius.


FAHRENHEIT

public static final TemperatureUnit FAHRENHEIT
Specifies that temperatures should be displayed in degrees Fahrenheit.

Method Detail

values

public static TemperatureUnit[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TemperatureUnit c : TemperatureUnit.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TemperatureUnit valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

value

public String value()

toString

public String toString()
Overrides:
toString in class Enum<TemperatureUnit>


Follow us on GitHub

Copyright © 2011-2012 Gone Vertical LLC. All Rights Reserved.