public static class HourlyForecast.Forecast extends AbstractForecast.Forecast
Parses forecast data (one element in the forecastList) and provides methods to get/access the same information.
This class provides 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 | Class and Description |
---|---|
static class |
HourlyForecast.Forecast.Clouds
Parses clouds data and provides methods to get/access the same information.
|
static class |
HourlyForecast.Forecast.Main
Parses main data and provides methods to get/access the same information.
|
static class |
HourlyForecast.Forecast.Sys
Parses sys data and provides methods to get/access the same information.
|
static class |
HourlyForecast.Forecast.Wind
Parses wind data and provides methods to get/access the same information.
|
AbstractWeather.Coord, AbstractWeather.Weather
Modifier and Type | Method and Description |
---|---|
HourlyForecast.Forecast.Clouds |
getCloudsInstance() |
java.lang.String |
getDateTimeText() |
HourlyForecast.Forecast.Main |
getMainInstance() |
java.lang.String |
getRawResponse() |
int |
getResponseCode() |
HourlyForecast.Forecast.Sys |
getSysInstance() |
HourlyForecast.Forecast.Wind |
getWindInstance() |
boolean |
hasCloudsInstance() |
boolean |
hasDateTimeText() |
boolean |
hasMainInstance() |
boolean |
hasRawResponse() |
boolean |
hasResponseCode() |
boolean |
hasSysInstance() |
boolean |
hasWindInstance() |
boolean |
isValid() |
getDateTime, getWeatherCount, getWeatherInstance, hasDateTime, hasWeatherInstance
public boolean hasDateTimeText()
public boolean hasCloudsInstance()
true
if Clouds instance is available, otherwise false
.public boolean hasMainInstance()
true
if Main instance is available, otherwise false
.public boolean hasSysInstance()
true
if Sys instance is available, otherwise false
.public boolean hasWindInstance()
true
if Wind instance is available, otherwise false
.public java.lang.String getDateTimeText()
public HourlyForecast.Forecast.Clouds getCloudsInstance()
null
.public HourlyForecast.Forecast.Main getMainInstance()
null
.public HourlyForecast.Forecast.Sys getSysInstance()
null
.public HourlyForecast.Forecast.Wind getWindInstance()
null
.public boolean isValid()
true
if response is valid (downloaded and parsed correctly), otherwise false
.public boolean hasResponseCode()
true
if response code is available, otherwise false
.public boolean hasRawResponse()
true
if raw response is available, otherwise false
.public int getResponseCode()
Integer.MIN_VALUE
.public java.lang.String getRawResponse()
null
.