public class Location
extends java.lang.Object
Constructor and Description |
---|
Location(com.neovisionaries.i18n.CountryCode country) |
Location(com.neovisionaries.i18n.CountryCode country,
java.lang.String state) |
Modifier and Type | Method and Description |
---|---|
com.neovisionaries.i18n.CountryCode |
getCountry()
The country of the location.
|
java.lang.String |
getState()
The state of the location.
|
boolean |
matches(Location location) |
static Location |
of(Address address)
The location of the address.
|
java.lang.String |
toString() |
public Location(@Nonnull com.neovisionaries.i18n.CountryCode country, java.lang.String state)
public Location(@Nonnull com.neovisionaries.i18n.CountryCode country)
@Nonnull public com.neovisionaries.i18n.CountryCode getCountry()
public java.lang.String getState()
public boolean matches(Location location)
public java.lang.String toString()
toString
in class java.lang.Object