Class LocationImpl
java.lang.Object
com.commercetools.api.models.zone.LocationImpl
- All Implemented Interfaces:
Location
,io.vrap.rmf.base.client.ModelBase
A geographical location representing a country and optionally a state within this country. A location can only be assigned to one Zone.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Country code of the geographic location.getState()
State within the country.int
hashCode()
void
setCountry
(String country) Country code of the geographic location.void
State within the country.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.zone.Location
withLocation
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
LocationImpl
public LocationImpl()create empty instance
-
-
Method Details
-
getCountry
Country code of the geographic location.
- Specified by:
getCountry
in interfaceLocation
- Returns:
- country
-
getState
State within the country.
-
setCountry
Description copied from interface:Location
Country code of the geographic location.
- Specified by:
setCountry
in interfaceLocation
- Parameters:
country
- value to be set
-
setState
Description copied from interface:Location
State within the country.
-
equals
-
hashCode
public int hashCode()
-