public abstract static class AbstractWeather.Coord
extends java.lang.Object
implements java.io.Serializable
Provides default behaviours for Coord, i.e., coordinates.
Modifier and Type | Method and Description |
---|---|
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.
|
public boolean hasLatitude()
true
if data available, otherwise false
public boolean hasLongitude()
true
if data available, otherwise false
public float getLatitude()
Float.NaN
.public float getLongitude()
Float.NaN
.