public class Location
extends Object
Constructor and Description |
---|
Location() |
Modifier and Type | Method and Description |
---|---|
Location |
country(String country)
Returns a Location instance initialized with country
|
boolean |
equals(Object o) |
String |
getCountry()
Get country
|
BigDecimal |
getLatitude()
The latitude part of the geographic coordinates
minimum: -90
maximum: 90
|
String |
getLocality()
Get locality
|
BigDecimal |
getLongitude()
The longitude part of the geographic coordinates
minimum: -180
maximum: 180
|
String |
getPostalcode()
Get postalcode
|
String |
getRegion()
County or other region code or name
|
String |
getStreetAddress()
Get streetAddress
|
int |
hashCode() |
Location |
latitude(BigDecimal latitude)
Returns a Location instance initialized with latitude
|
Location |
locality(String locality)
Returns a Location instance initialized with locality
|
Location |
longitude(BigDecimal longitude)
Returns a Location instance initialized with longitude
|
Location |
postalcode(String postalcode)
Returns a Location instance initialized with postalcode
|
Location |
region(String region)
Returns a Location instance initialized with region
|
void |
setCountry(String country) |
void |
setLatitude(BigDecimal latitude) |
void |
setLocality(String locality) |
void |
setLongitude(BigDecimal longitude) |
void |
setPostalcode(String postalcode) |
void |
setRegion(String region) |
void |
setStreetAddress(String streetAddress) |
Location |
streetAddress(String streetAddress)
Returns a Location instance initialized with streetAddress
|
String |
toString() |
public Location country(String country)
country
- country to be associated with Locationpublic String getCountry()
public void setCountry(String country)
public Location region(String region)
region
- region to be associated with Locationpublic String getRegion()
public void setRegion(String region)
public Location locality(String locality)
locality
- locality to be associated with Locationpublic String getLocality()
public void setLocality(String locality)
public Location streetAddress(String streetAddress)
streetAddress
- streetAddress to be associated with Locationpublic String getStreetAddress()
public void setStreetAddress(String streetAddress)
public Location postalcode(String postalcode)
postalcode
- postalcode to be associated with Locationpublic String getPostalcode()
public void setPostalcode(String postalcode)
public Location longitude(BigDecimal longitude)
longitude
- longitude to be associated with Locationpublic BigDecimal getLongitude()
public void setLongitude(BigDecimal longitude)
public Location latitude(BigDecimal latitude)
latitude
- latitude to be associated with Locationpublic BigDecimal getLatitude()
public void setLatitude(BigDecimal latitude)
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object