net.aksingh.owmjapis
Class DailyForecast.Forecast.Temperature

java.lang.Object
  extended by 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


Field Summary
 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
           
 
Method Summary
 float getDayTemperature()
           
 float getEveningTemperature()
           
 float getMaximumTemperature()
           
 float getMinimumTemperature()
           
 float getMorningTemperature()
           
 float getNightTemperature()
           
 boolean hasDayTemperature()
           
 boolean hasEveningTemperature()
           
 boolean hasMaximumTemperature()
           
 boolean hasMinimumTemperature()
           
 boolean hasMorningTemperature()
           
 boolean hasNightTemperature()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Method Detail

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()