net.aksingh.owmjapis
Class AbstractWeather.Coord

java.lang.Object
  extended by net.aksingh.owmjapis.AbstractWeather.Coord
Direct Known Subclasses:
AbstractForecast.City.Coord, CurrentWeather.Coord
Enclosing class:
AbstractWeather

public abstract static class AbstractWeather.Coord
extends java.lang.Object

Provides default behaviours for Coord, i.e., coordinates.

Since:
2.5.0.1
Version:
2013/12/23
Author:
Ashutosh Kumar Singh

Method Summary
 float getLatitude()
           
 float getLongitude()
           
 boolean hasLatitude()
          Tells if the latitude of the city is available or not.
 boolean hasLongitude()
          Tells if the longitude of the city is available or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasLatitude

public boolean hasLatitude()
Tells if the latitude of the city is available or not.

Returns:
true if data available, otherwise false

hasLongitude

public boolean hasLongitude()
Tells if the longitude of the city is available or not.

Returns:
true if data available, otherwise false

getLatitude

public float getLatitude()
Returns:
Latitude of the city if available, otherwise Float.NaN.

getLongitude

public float getLongitude()
Returns:
Longitude of the city if available, otherwise Float.NaN.