public static class DailyForecast.Forecast.Temperature
extends java.lang.Object
implements java.io.Serializable
Parses temperature data 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 | Field and Description |
---|---|
java.lang.String |
JSON_TEMP_DAY |
java.lang.String |
JSON_TEMP_EVENING |
java.lang.String |
JSON_TEMP_MAX |
java.lang.String |
JSON_TEMP_MIN |
java.lang.String |
JSON_TEMP_MORNING |
java.lang.String |
JSON_TEMP_NIGHT |
Modifier and Type | Method and Description |
---|---|
float |
getDayTemperature() |
float |
getEveningTemperature() |
float |
getMaximumTemperature() |
float |
getMinimumTemperature() |
float |
getMorningTemperature() |
float |
getNightTemperature() |
boolean |
hasDayTemperature() |
boolean |
hasEveningTemperature() |
boolean |
hasMaximumTemperature() |
boolean |
hasMinimumTemperature() |
boolean |
hasMorningTemperature() |
boolean |
hasNightTemperature() |
public final java.lang.String JSON_TEMP_DAY
public final java.lang.String JSON_TEMP_MIN
public final java.lang.String JSON_TEMP_MAX
public final java.lang.String JSON_TEMP_NIGHT
public final java.lang.String JSON_TEMP_EVENING
public final java.lang.String JSON_TEMP_MORNING
public boolean hasDayTemperature()
public boolean hasMinimumTemperature()
public boolean hasMaximumTemperature()
public boolean hasNightTemperature()
public boolean hasEveningTemperature()
public boolean hasMorningTemperature()
public float getDayTemperature()
public float getMinimumTemperature()
public float getMaximumTemperature()
public float getNightTemperature()
public float getEveningTemperature()
public float getMorningTemperature()