- java.lang.Object
-
- com.rometools.modules.yahooweather.types.Units
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Units extends Object implements Serializable, Cloneable
Units for various aspects of the forecast. Attributes:- temperature: degree units, f for Fahrenheit or c for Celsius (character)
- distance: units for distance, mi for miles or km for kilometers (string)
- pressure: units of barometric pressure, in for pounds per square inch or mb for millibars (string) [I am pretty sure this is wrong. I believe this number of be inches of Mercury, not PSI.]
- speed: units of speed, mph for miles per hour or kph for kilometers per hour (string)
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
boolean
equals(Object o)
String
getDistance()
Units of distanceString
getPressure()
Units of pressureString
getSpeed()
Units of speedString
getTemperature()
Units of Temperature.int
hashCode()
void
setDistance(String distance)
Units of distancevoid
setPressure(String pressure)
Units of pressurevoid
setSpeed(String speed)
Units of speedvoid
setTemperature(String temperature)
Units of Temperature.String
toString()
-
-
-
Method Detail
-
getTemperature
public String getTemperature()
Units of Temperature.- Returns:
- temperature units of temp ("f" or "c");
-
setTemperature
public void setTemperature(String temperature)
Units of Temperature.- Parameters:
temperature
- units of temp ("f" or "c");
-
getDistance
public String getDistance()
Units of distance- Returns:
- distance units of distance ("mi" or "km")
-
setDistance
public void setDistance(String distance)
Units of distance- Parameters:
distance
- units of distance ("mi" or "km")
-
getPressure
public String getPressure()
Units of pressure- Returns:
- units of pressure ("in" or "mb")
-
setPressure
public void setPressure(String pressure)
Units of pressure- Parameters:
pressure
- units of pressure ("in" or "mb")
-
getSpeed
public String getSpeed()
Units of speed- Returns:
- units of speed ("mph" or "kph")
-
setSpeed
public void setSpeed(String speed)
Units of speed- Parameters:
speed
- units of speed ("mph" or "kph")
-
-