com.github.fedy2.weather.data
Class Location

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

public class Location
extends Object

Weather location.

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

Constructor Summary
Location()
           
Location(String city, String region, String country)
           
 
Method Summary
 String getCity()
          Returns the city name.
 String getCountry()
          Returns the two-character country code.
 String getRegion()
          Returns the state, territory, or region, if given
 String toString()
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Location

public Location()

Location

public Location(String city,
                String region,
                String country)
Parameters:
city - the city name.
region - the state, territory, or region.
country - the two-character country code.
Method Detail

getCity

public String getCity()
Returns the city name.

Returns:
the city name.

getRegion

public String getRegion()
Returns the state, territory, or region, if given

Returns:
the region

getCountry

public String getCountry()
Returns the two-character country code.

Returns:
the country

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2013. All rights reserved.