net.aksingh.owmjapis
Class Tools

java.lang.Object
  extended by net.aksingh.owmjapis.Tools

public class Tools
extends java.lang.Object

Provides methods for conversions, etc.

Since:
2.5.0.1
Version:
2014-12-27
Author:
Ashutosh Kumar Singh

Constructor Summary
Tools()
           
 
Method Summary
 java.lang.String convertDegree2Direction(float degree)
           Converts degree to direction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tools

public Tools()
Method Detail

convertDegree2Direction

public java.lang.String convertDegree2Direction(float degree)
                                         throws java.lang.IllegalArgumentException

Converts degree to direction.

Parameters:
degree - Degree of wind as received from OWM.org
Returns:
Direction
Throws:
java.lang.IllegalArgumentException - Degree should be between 0 and 360.