|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.aksingh.owmjapis.AbstractWeather
net.aksingh.owmjapis.CurrentWeather
public class CurrentWeather
Parses current weather data and provides methods to get/access the same information.
This class provides has
and get
methods to access the information.
has
methods can be used to check if the data exists, i.e., if the data was available
(successfully downloaded) and was parsed correctly.
get
methods can be used to access the data, if the data exists, otherwise get
methods will give value as per following basis:
Boolean: false
Integral: Minimum value (MIN_VALUE)
Floating point: Not a number (NaN)
Others: null
Nested Class Summary | |
---|---|
static class |
CurrentWeather.Clouds
Parses clouds data and provides methods to get/access the same information. |
static class |
CurrentWeather.Coord
Parses coordination data and provides methods to get/access the same information. |
static class |
CurrentWeather.Main
Parses main data and provides methods to get/access the same information. |
static class |
CurrentWeather.Rain
Parses rain data and provides methods to get/access the same information. |
static class |
CurrentWeather.Sys
Parses sys data and provides methods to get/access the same information. |
static class |
CurrentWeather.Wind
Parses wind data and provides methods to get/access the same information. |
Nested classes/interfaces inherited from class net.aksingh.owmjapis.AbstractWeather |
---|
AbstractWeather.Weather |
Method Summary | |
---|---|
java.lang.String |
getBaseStation()
|
long |
getCityCode()
|
java.lang.String |
getCityName()
|
CurrentWeather.Clouds |
getCloudsInstance()
|
CurrentWeather.Coord |
getCoordInstance()
|
CurrentWeather.Main |
getMainInstance()
|
CurrentWeather.Rain |
getRainInstance()
|
java.lang.String |
getRawResponse()
|
int |
getResponseCode()
|
CurrentWeather.Sys |
getSysInstance()
|
CurrentWeather.Wind |
getWindInstance()
|
boolean |
hasBaseStation()
|
boolean |
hasCityCode()
|
boolean |
hasCityName()
|
boolean |
hasCloudsInstance()
|
boolean |
hasCoordInstance()
|
boolean |
hasMainInstance()
|
boolean |
hasRainInstance()
|
boolean |
hasRawResponse()
|
boolean |
hasResponseCode()
|
boolean |
hasSysInstance()
|
boolean |
hasWindInstance()
|
boolean |
isValid()
|
Methods inherited from class net.aksingh.owmjapis.AbstractWeather |
---|
getDateTime, getWeatherCount, getWeatherInstance, hasDateTime, hasWeatherInstance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean hasBaseStation()
true
if base station is available, otherwise false
.public boolean hasCityCode()
true
if city code is available, otherwise false
.public boolean hasCityName()
true
if city name is available, otherwise false
.public boolean hasCloudsInstance()
true
if Clouds instance is available, otherwise false
.public boolean hasCoordInstance()
true
if Coord instance is available, otherwise false
.public boolean hasMainInstance()
true
if Main instance is available, otherwise false
.public boolean hasRainInstance()
true
if Rain instance is available, otherwise false
.public boolean hasSysInstance()
true
if Sys instance is available, otherwise false
.public boolean hasWindInstance()
true
if Wind instance is available, otherwise false
.public java.lang.String getBaseStation()
null
.public long getCityCode()
Long.MIN_VALUE
.public java.lang.String getCityName()
null
.public CurrentWeather.Clouds getCloudsInstance()
null
.public CurrentWeather.Coord getCoordInstance()
null
.public CurrentWeather.Main getMainInstance()
null
.public CurrentWeather.Rain getRainInstance()
null
.public CurrentWeather.Sys getSysInstance()
null
.public CurrentWeather.Wind getWindInstance()
null
.public boolean isValid()
true
if response is valid (downloaded and parsed correctly), otherwise false
.public boolean hasResponseCode()
true
if response code is available, otherwise false
.public boolean hasRawResponse()
true
if raw response is available, otherwise false
.public int getResponseCode()
Integer.MIN_VALUE
.public java.lang.String getRawResponse()
null
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |