public interface Location
Modifier and Type | Method and Description |
---|---|
static LocationBuilder |
builder() |
static LocationBuilder |
builder(Location template) |
@NotNull String |
getCountry()
A two-digit country code as per ISO 3166-1 alpha-2.
|
String |
getState() |
static Location |
of() |
static Location |
of(Location template) |
void |
setCountry(String country) |
void |
setState(String state) |
default <T> T |
withLocation(Function<Location,T> helper) |
@NotNull @NotNull String getCountry()
A two-digit country code as per ISO 3166-1 alpha-2.
String getState()
void setCountry(String country)
void setState(String state)
static Location of()
static LocationBuilder builder()
static LocationBuilder builder(Location template)