Class Clouds
java.lang.Object
com.github.prominence.openweathermap.api.model.Clouds
The Clouds type represents cloudiness value percentage.
Its value can only be an integer in [0, 100] range.
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetUnit()Returns cloudiness unitSystem.bytegetValue()Returns cloudiness percentage value.inthashCode()voidsetValue(byte value) Sets cloudiness percentage value.toString()static CloudswithValue(byte value) Static method forCloudscreation with value checking.
-
Method Details
-
withValue
-
getValue
public byte getValue()Returns cloudiness percentage value.- Returns:
- cloudiness percentage.
-
setValue
public void setValue(byte value) Sets cloudiness percentage value.- Parameters:
value- new cloudiness value.- Throws:
IllegalArgumentException- in case if provided value isn't in allowed range.
-
getUnit
Returns cloudiness unitSystem. Constantly equals to '%'.- Returns:
- the cloudiness unitSystem.
-
equals
-
hashCode
-
toString
-