public enum FioUnit extends Enum<FioUnit>
| Enum Constant and Description |
|---|
AUTO
Selects the relevant units automatically, based on geographic location.
|
CA
Identical to si, except that windSpeed is in kilometers per hour.
|
SI
Returns results in SI units.
|
UK2
Identical to si, except that windSpeed is in miles per hour, and
nearestStormDistance and visibility are in miles, as in the US.
|
UNKNOWN |
US
The default.
|
| Modifier and Type | Method and Description |
|---|---|
static FioUnit |
findByJsonValue(String jsonValue) |
String |
getJsonValue() |
static FioUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FioUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FioUnit US
public static final FioUnit SI
public static final FioUnit CA
public static final FioUnit UK2
public static final FioUnit AUTO
public static final FioUnit UNKNOWN
public static FioUnit[] values()
for (FioUnit c : FioUnit.values()) System.out.println(c);
public static FioUnit 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 getJsonValue()
Copyright © 2016. All rights reserved.