public enum WindSpeedUnit extends Enum<WindSpeedUnit>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final WindSpeedUnit KILOMETERS_PER_HOUR
public static final WindSpeedUnit METERS_PER_SECOND
public static final WindSpeedUnit MILES_PER_HOUR
public static WindSpeedUnit[] values()
for (WindSpeedUnit c : WindSpeedUnit.values()) System.out.println(c);
public static WindSpeedUnit valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic String value()
public String toString()
toString
in class Enum<WindSpeedUnit>
Copyright © 2011-2013 Gone Vertical LLC. All Rights Reserved.