public class Location
extends Object
implements Serializable
Constructor and Description |
---|
Location() |
Modifier and Type | Method and Description |
---|---|
Location |
country(String 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) |
Location |
locality(String locality) |
Location |
longitude(BigDecimal longitude) |
Location |
postalCode(String postalCode) |
Location |
region(String 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) |
String |
toString() |
public Location country(String country)
public String getCountry()
public void setCountry(String country)
public Location region(String region)
public String getRegion()
public void setRegion(String region)
public Location locality(String locality)
public String getLocality()
public void setLocality(String locality)
public Location streetAddress(String streetAddress)
public String getStreetAddress()
public void setStreetAddress(String streetAddress)
public Location postalCode(String postalCode)
public String getPostalCode()
public void setPostalCode(String postalCode)
public Location longitude(BigDecimal longitude)
public BigDecimal getLongitude()
public void setLongitude(BigDecimal longitude)
public Location latitude(BigDecimal latitude)
public 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