net.aksingh.owmjapis
Class AbstractForecast.City

java.lang.Object
  extended by net.aksingh.owmjapis.AbstractForecast.City
Enclosing class:
AbstractForecast

public static class AbstractForecast.City
extends java.lang.Object

Provides default behaviours for City

Author:
Ashutosh Kumar Singh

Nested Class Summary
static class AbstractForecast.City.Coord
           
 
Method Summary
 long getCityCode()
           
 java.lang.String getCityName()
           
 long getCityPopulation()
           
 AbstractForecast.City.Coord getCoordInstance()
           
 java.lang.String getCountryCode()
           
 boolean hasCityCode()
           
 boolean hasCityName()
           
 boolean hasCityPopulation()
           
 boolean hasCoordInstance()
           
 boolean hasCountryCode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasCityCode

public boolean hasCityCode()

hasCityName

public boolean hasCityName()

hasCountryCode

public boolean hasCountryCode()

hasCityPopulation

public boolean hasCityPopulation()

hasCoordInstance

public boolean hasCoordInstance()
Returns:
true if Coord instance is available, otherwise false.

getCityCode

public long getCityCode()

getCityName

public java.lang.String getCityName()

getCountryCode

public java.lang.String getCountryCode()

getCityPopulation

public long getCityPopulation()

getCoordInstance

public AbstractForecast.City.Coord getCoordInstance()
Returns:
Coord instance if available, otherwise null.