Class DailySnow

java.lang.Object
com.github.prominence.openweathermap.api.model.onecall.current.DailySnow

public class DailySnow extends Object
Represents snow information.
  • Method Details

    • withValue

      public static DailySnow withValue(double value)
      Creates DailySnow object with correctness check.
      Parameters:
      value - 1-hour snow level value
      Returns:
      snow object.
    • getValue

      public double getValue()
      Gets one hour snow level.
      Returns:
      the one hour snow level
    • setValue

      public void setValue(double value)
      Sets one hour snow level.
      Parameters:
      value - the one hour snow level
    • getUnit

      public String getUnit()
      Gets unit.
      Returns:
      the unit
    • 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