public abstract static class AbstractWeather.Main
extends java.lang.Object
implements java.io.Serializable
Provides default behaviours for Main, i.e., main weather elements like temperature, humidity, etc.
Modifier and Type | Method and Description |
---|---|
float |
getHumidity() |
float |
getMaxTemperature() |
float |
getMinTemperature() |
float |
getPressure() |
float |
getTemperature() |
boolean |
hasHumidity()
Tells if humidity of the city is available or not.
|
boolean |
hasMaxTemperature()
Tells if the maximum temperature of the city is available or not.
|
boolean |
hasMinTemperature()
Tells if the minimum temperature of the city is available or not.
|
boolean |
hasPressure()
Tells if pressure of the city is available or not.
|
boolean |
hasTemperature()
Tells if the temperature of the city is available or not.
|
public boolean hasTemperature()
true
if data available, otherwise false
public boolean hasMinTemperature()
true
if data available, otherwise false
public boolean hasMaxTemperature()
true
if data available, otherwise false
public boolean hasPressure()
true
if data available, otherwise false
public boolean hasHumidity()
true
if data available, otherwise false
public float getTemperature()
Float.NaN
.public float getMinTemperature()
Float.NaN
.public float getMaxTemperature()
Float.NaN
.public float getPressure()
Float.NaN
.public float getHumidity()
Float.NaN
.