Class DailyRain

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

public class DailyRain extends Object
Represents rain information.
  • Method Details

    • withValue

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

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

      public void setValue(double value)
      Sets one hour rain level.
      Parameters:
      value - the one hour rain 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