net.aksingh.owmjapis
Class AbstractForecast.City
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
.