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

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

public enum WindSpeedUnit
extends Enum<WindSpeedUnit>

The wind speed unit displayed by the weather layer.

See WindSpeedUnit API Doc


Enum Constant Summary
KILOMETERS_PER_HOUR
          Specifies that wind speeds should be displayed in kilometers per hour.
METERS_PER_SECOND
          Specifies that wind speeds should be displayed in meters per second.
MILES_PER_HOUR
          Specifies that wind speeds should be displayed in miles per hour.
 
Method Summary
static WindSpeedUnit fromValue(String type)
          Maps the value to an instance of the enum
 String toString()
           
 String value()
           
static WindSpeedUnit valueOf(String name)
          Returns the enum constant of this type with the specified name.
static WindSpeedUnit[] 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

KILOMETERS_PER_HOUR

public static final WindSpeedUnit KILOMETERS_PER_HOUR
Specifies that wind speeds should be displayed in kilometers per hour.


METERS_PER_SECOND

public static final WindSpeedUnit METERS_PER_SECOND
Specifies that wind speeds should be displayed in meters per second.


MILES_PER_HOUR

public static final WindSpeedUnit MILES_PER_HOUR
Specifies that wind speeds should be displayed in miles per hour.

Method Detail

values

public static WindSpeedUnit[] 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 (WindSpeedUnit c : WindSpeedUnit.values())
    System.out.println(c);

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

valueOf

public static WindSpeedUnit 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

fromValue

public static WindSpeedUnit fromValue(String type)
Maps the value to an instance of the enum

Parameters:
type -
Returns:
NULL if not matched

value

public String value()

toString

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


Copyright © 2011-2013 GWT Maps API V3. All Rights Reserved.