|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.aksingh.owmjapis.Tools
public class Tools
Provides methods for conversions, etc.
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 |
---|
public Tools()
Method Detail |
---|
public java.lang.String convertDegree2Direction(float degree) throws java.lang.IllegalArgumentException
Converts degree to direction.
degree
- Degree of wind as received from OWM.org
java.lang.IllegalArgumentException
- Degree should be between 0 and 360.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |