public class Location extends Object implements Serializable, Cloneable
Constructor and Description |
---|
Location()
Simple constructor
|
Location(String city,
String region,
String country)
Constructs a new Location object.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
boolean |
equals(Object o) |
String |
getCity()
City name
|
String |
getCountry()
country two-character country code.
|
String |
getRegion()
state, territory, or region, if given
|
int |
hashCode() |
void |
setCity(String city)
City name
|
void |
setCountry(String country)
country two-character country code.
|
void |
setRegion(String region)
state, territory, or region, if given
|
String |
toString() |
public String getCity()
public void setCity(String city)
city
- city namepublic String getRegion()
public void setRegion(String region)
region
- state, territory, or region, if givenpublic String getCountry()
public void setCountry(String country)
country
- country two-character country code.Copyright © 2016. All rights reserved.