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 StoreCountryBuilder
builder()
builder factory method for StoreCountrystatic StoreCountryBuilder
builder
(StoreCountry template) create builder for StoreCountry instancestatic StoreCountry
deepCopy
(StoreCountry template) factory method to create a deep copy of StoreCountry@NotNull String
getCode()
Two-digit country code as per ISO 3166-1 alpha-2.static StoreCountry
of()
factory methodstatic StoreCountry
of
(StoreCountry template) factory method to create a shallow copy StoreCountryvoid
Two-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> T
withStoreCountry
(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
-
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
-