com.github.fedy2.weather.data
Class Units

java.lang.Object
  extended by com.github.fedy2.weather.data.Units

public class Units
extends Object

Units for various aspects of the forecast.

Author:
"Federico De Faveri defaveri@gmail.com"

Constructor Summary
Units()
           
Units(DegreeUnit temperature, DistanceUnit distance, PressureUnit pressure, SpeedUnit speed)
           
 
Method Summary
 DistanceUnit getDistance()
          Returns the distance unit.
 PressureUnit getPressure()
          Returns the units of barometric pressure.
 SpeedUnit getSpeed()
          Returns the units of speed.
 DegreeUnit getTemperature()
          Returns the temperature unit.
 String toString()
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Units

public Units()

Units

public Units(DegreeUnit temperature,
             DistanceUnit distance,
             PressureUnit pressure,
             SpeedUnit speed)
Parameters:
temperature -
distance -
pressure -
speed -
Method Detail

getTemperature

public DegreeUnit getTemperature()
Returns the temperature unit.

Returns:
the temperature

getDistance

public DistanceUnit getDistance()
Returns the distance unit.

Returns:
the distance

getPressure

public PressureUnit getPressure()
Returns the units of barometric pressure.

Returns:
the pressure

getSpeed

public SpeedUnit getSpeed()
Returns the units of speed.

Returns:
the speed

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2013. All rights reserved.