public enum WeatherReport extends java.lang.Enum<WeatherReport>
Enum Constant and Description |
---|
CURRENT |
DAILY_FORECAST |
FORECAST |
HOURLY_FORECAST |
INVALID |
Modifier and Type | Field and Description |
---|---|
protected short |
value |
Modifier and Type | Method and Description |
---|---|
static WeatherReport |
getByValue(java.lang.Short value) |
static java.lang.String |
getStringFromValue(WeatherReport value)
Retrieves the String Representation of the Value
|
short |
getValue() |
static WeatherReport |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WeatherReport[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WeatherReport CURRENT
public static final WeatherReport FORECAST
public static final WeatherReport HOURLY_FORECAST
public static final WeatherReport DAILY_FORECAST
public static final WeatherReport INVALID
public static WeatherReport[] values()
for (WeatherReport c : WeatherReport.values()) System.out.println(c);
public static WeatherReport valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static WeatherReport getByValue(java.lang.Short value)
public static java.lang.String getStringFromValue(WeatherReport value)
value
- The enum constantpublic short getValue()