net.aksingh.owmjapis
Class AbstractWeather.Wind

java.lang.Object
  extended by net.aksingh.owmjapis.AbstractWeather.Wind
Direct Known Subclasses:
CurrentWeather.Wind, HourlyForecast.Forecast.Wind
Enclosing class:
AbstractWeather

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

Provides default behaviours for Wind.

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

Method Summary
 float getWindDegree()
           
 float getWindSpeed()
           
 boolean hasWindDegree()
          Tells if degree (degree gives direction) of wind in the city is available or not.
 boolean hasWindSpeed()
          Tells if speed of wind in 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

hasWindSpeed

public boolean hasWindSpeed()
Tells if speed of wind in the city is available or not.

Returns:
true if data available, otherwise false.

hasWindDegree

public boolean hasWindDegree()
Tells if degree (degree gives direction) of wind in the city is available or not.

Returns:
true if data available, otherwise false.

getWindSpeed

public float getWindSpeed()
Returns:
Speed of wind in the city if available, otherwise Float.NaN.

getWindDegree

public float getWindDegree()
Returns:
Degree of wind in the city if available, otherwise Float.NaN.