Class Snow
java.lang.Object
com.github.prominence.openweathermap.api.model.weather.Snow
Represents snow information.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanGets one hour snow level.Gets three hour snow level.getUnit()Gets unit.inthashCode()voidsetOneHourLevel(double oneHourLevel) Sets one hour snow level.voidsetThreeHourLevel(double threeHourLevel) Sets three hour snow level.toString()static SnowwithOneHourLevelValue(double oneHourLevel) CreatesSnowobject with correctness check.static SnowwithThreeHourLevelValue(double threeHourLevel) CreatesSnowobject with correctness check.static SnowwithValues(double oneHourLevel, double threeHourLevel) CreatesSnowobject with correctness check.
-
Method Details
-
withOneHourLevelValue
-
withThreeHourLevelValue
-
withValues
-
getOneHourLevel
-
setOneHourLevel
public void setOneHourLevel(double oneHourLevel) Sets one hour snow level.- Parameters:
oneHourLevel- the one hour snow level
-
getThreeHourLevel
-
setThreeHourLevel
public void setThreeHourLevel(double threeHourLevel) Sets three hour snow level.- Parameters:
threeHourLevel- the three hour snow level
-
getUnit
-
equals
-
hashCode
-
toString
-