net.aksingh.owmjapis
Class CurrentWeather.Sys

java.lang.Object
  extended by net.aksingh.owmjapis.CurrentWeather.Sys
Enclosing class:
CurrentWeather

public static class CurrentWeather.Sys
extends java.lang.Object

Parses sys 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

Since:
2.5.0.1
Version:
2014/12/26
Author:
Ashutosh Kumar Singh

Method Summary
 java.lang.String getCountryCode()
           
 int getId()
           
 double getMessage()
           
 java.util.Date getSunriseTime()
           
 java.util.Date getSunsetTime()
           
 int getType()
           
 boolean hasCountryCode()
           
 boolean hasId()
           
 boolean hasMessage()
           
 boolean hasSunriseTime()
           
 boolean hasSunsetTime()
           
 boolean hasType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasType

public boolean hasType()

hasId

public boolean hasId()

hasMessage

public boolean hasMessage()

hasCountryCode

public boolean hasCountryCode()

hasSunriseTime

public boolean hasSunriseTime()

hasSunsetTime

public boolean hasSunsetTime()

getType

public int getType()

getId

public int getId()

getMessage

public double getMessage()

getCountryCode

public java.lang.String getCountryCode()

getSunriseTime

public java.util.Date getSunriseTime()

getSunsetTime

public java.util.Date getSunsetTime()