net.aksingh.owmjapis
Class DailyForecast.Forecast.Temperature
java.lang.Object
net.aksingh.owmjapis.DailyForecast.Forecast.Temperature
- Enclosing class:
- DailyForecast.Forecast
public static class DailyForecast.Forecast.Temperature
- extends java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSON_TEMP_DAY
public final java.lang.String JSON_TEMP_DAY
- See Also:
- Constant Field Values
JSON_TEMP_MIN
public final java.lang.String JSON_TEMP_MIN
- See Also:
- Constant Field Values
JSON_TEMP_MAX
public final java.lang.String JSON_TEMP_MAX
- See Also:
- Constant Field Values
JSON_TEMP_NIGHT
public final java.lang.String JSON_TEMP_NIGHT
- See Also:
- Constant Field Values
JSON_TEMP_EVENING
public final java.lang.String JSON_TEMP_EVENING
- See Also:
- Constant Field Values
JSON_TEMP_MORNING
public final java.lang.String JSON_TEMP_MORNING
- See Also:
- Constant Field Values
hasDayTemperature
public boolean hasDayTemperature()
hasMinimumTemperature
public boolean hasMinimumTemperature()
hasMaximumTemperature
public boolean hasMaximumTemperature()
hasNightTemperature
public boolean hasNightTemperature()
hasEveningTemperature
public boolean hasEveningTemperature()
hasMorningTemperature
public boolean hasMorningTemperature()
getDayTemperature
public float getDayTemperature()
getMinimumTemperature
public float getMinimumTemperature()
getMaximumTemperature
public float getMaximumTemperature()
getNightTemperature
public float getNightTemperature()
getEveningTemperature
public float getEveningTemperature()
getMorningTemperature
public float getMorningTemperature()