Interface StoreCountry
public interface StoreCountry
StoreCountry
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StoreCountry storeCountry = StoreCountry.builder()
.code("{code}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic StoreCountryBuilderbuilder()builder factory method for StoreCountrystatic StoreCountryBuilderbuilder(StoreCountry template) create builder for StoreCountry instancecopyDeep()static StoreCountrydeepCopy(StoreCountry template) factory method to create a deep copy of StoreCountry@NotNull StringgetCode()Two-digit country code as per ISO 3166-1 alpha-2.static StoreCountryof()factory methodstatic StoreCountryof(StoreCountry template) factory method to create a shallow copy StoreCountryvoidTwo-digit country code as per ISO 3166-1 alpha-2.static com.fasterxml.jackson.core.type.TypeReference<StoreCountry>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithStoreCountry(Function<StoreCountry, T> helper) accessor map function
-
Method Details
-
getCode
Two-digit country code as per ISO 3166-1 alpha-2.
- Returns:
- code
-
setCode
Two-digit country code as per ISO 3166-1 alpha-2.
- Parameters:
code- value to be set
-
of
factory method- Returns:
- instance of StoreCountry
-
of
factory method to create a shallow copy StoreCountry- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
StoreCountry copyDeep() -
deepCopy
factory method to create a deep copy of StoreCountry- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StoreCountry- Returns:
- builder
-
builder
create builder for StoreCountry instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStoreCountry
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-