Class Wind

java.lang.Object
com.github.prominence.openweathermap.api.model.onecall.Wind

public class Wind extends Object
The type Wind.
  • Method Details

    • withValue

      public static Wind withValue(double speed, String unit)
      Creates Wind object with correctness check.
      Parameters:
      speed - the speed
      unit - the unitSystem
      Returns:
      wind object
    • getSpeed

      public double getSpeed()
      Gets speed.
      Returns:
      the speed
    • setSpeed

      public void setSpeed(double speed)
      Sets speed.
      Parameters:
      speed - the speed
    • getGust

      public Double getGust()
      Gets gust value.
      Returns:
      the gust
    • setGust

      public void setGust(double gust)
      Sets gust value.
      Parameters:
      gust - the gust.
    • getDegrees

      public Double getDegrees()
      Gets degrees.
      Returns:
      the degrees
    • setDegrees

      public void setDegrees(double degrees)
      Sets degrees.
      Parameters:
      degrees - the degrees
    • getUnit

      public String getUnit()
      Gets unitSystem.
      Returns:
      the unitSystem
    • setUnit

      public void setUnit(String unit)
      Sets unitSystem.
      Parameters:
      unit - the unitSystem
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object