public static class CurrentWeatherData.Wind extends AbstractWeatherData.Wind
has
and get
methods
to access the information.
has
methods can be used to check
if the data exists, i.e., if the data was available (successfully
downloaded) and was parsed correctly.
get
methods can be used to access the data, if the data
exists, otherwise get
methods will give value as per
following basis:
Boolean: false
Integral: Minimum value (MIN_VALUE)
Floating point: Not a number (NaN)
Others: null
Modifier and Type | Field and Description |
---|---|
private float |
gust
Wind gust
|
private java.lang.String |
JSON_WIND_GUST
Key for JSON variable
Wind -> Gust |
Constructor and Description |
---|
CurrentWeatherData.Wind()
Non-parameterized constructor
|
CurrentWeatherData.Wind(org.json.JSONObject jsonObj)
Parameterized constructor
Initializes variables from values from the given JSON object.
|
Modifier and Type | Method and Description |
---|---|
float |
getWindGust() |
boolean |
hasWindGust() |
getWindDegree, getWindSpeed, hasWindDegree, hasWindSpeed
private final java.lang.String JSON_WIND_GUST
Wind -> Gust
private final float gust
public CurrentWeatherData.Wind()
Initializes variables as per following basis:
Boolean: false
Integral: Minimum value (MIN_VALUE)
Floating point: Not a number (NaN)
Others: null
public CurrentWeatherData.Wind(org.json.JSONObject jsonObj)
jsonObj
- JSON object containing data about wind