Class Wind
java.lang.Object
com.github.prominence.openweathermap.api.model.forecast.Wind
Represents wind information.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanGets degrees.doublegetSpeed()Gets speed.getUnit()Gets unitSystem.inthashCode()voidsetDegrees(double degrees) Sets degrees.voidsetSpeed(double speed) Sets speed.voidSets unitSystem.toString()static WindCreatesWindobject with correctness check
-
Method Details
-
withValue
-
getSpeed
public double getSpeed()Gets speed.- Returns:
- the speed
-
setSpeed
public void setSpeed(double speed) Sets speed.- Parameters:
speed- the speed
-
getDegrees
-
setDegrees
public void setDegrees(double degrees) Sets degrees.- Parameters:
degrees- the degrees
-
getUnit
-
setUnit
-
equals
-
hashCode
-
toString
-