public class Tools
extends java.lang.Object
Provides methods for conversions, etc.
Constructor and Description |
---|
Tools() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
convertDegree2Direction(float degree)
Converts degree to direction.
|
public java.lang.String convertDegree2Direction(float degree) throws java.lang.IllegalArgumentException
Converts degree to direction.
degree
- Degree of wind as received from OWM.orgjava.lang.IllegalArgumentException
- Degree should be between 0 and 360.