Interface Address
- All Superinterfaces:
BaseAddress
Address type returned by read methods. Optionally, the custom field can be present in addition to the fields of a BaseAddress.
Example to create an instance using the builder pattern
Address address = Address.builder()
.country("{country}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic AddressBuilderbuilder()builder factory method for Addressstatic AddressBuildercreate builder for Address instancecopyDeep()static Addressfactory method to create a deep copy of Address@Valid CustomFieldsCustom Fields defined for the Address.static Addressof()factory methodstatic Addressfactory method to create a shallow copy AddressvoidsetCustom(CustomFields custom) Custom Fields defined for the Address.static com.fasterxml.jackson.core.type.TypeReference<Address>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithAddress(Function<Address, T> helper) accessor map functionMethods inherited from interface com.commercetools.history.models.common.BaseAddress
getAdditionalAddressInfo, getAdditionalStreetInfo, getApartment, getBuilding, getCity, getCompany, getCountry, getDepartment, getEmail, getExternalId, getFax, getFirstName, getId, getKey, getLastName, getMobile, getPhone, getPOBox, getPostalCode, getRegion, getSalutation, getState, getStreetName, getStreetNumber, getTitle, setAdditionalAddressInfo, setAdditionalStreetInfo, setApartment, setBuilding, setCity, setCompany, setCountry, setDepartment, setEmail, setExternalId, setFax, setFirstName, setId, setKey, setLastName, setMobile, setPhone, setPOBox, setPostalCode, setRegion, setSalutation, setState, setStreetName, setStreetNumber, setTitle, withBaseAddress
-
Method Details
-
getCustom
Custom Fields defined for the Address.
- Returns:
- custom
-
setCustom
Custom Fields defined for the Address.
- Parameters:
custom- value to be set
-
of
factory method- Returns:
- instance of Address
-
of
factory method to create a shallow copy Address- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
Address copyDeep()- Specified by:
copyDeepin interfaceBaseAddress
-
deepCopy
factory method to create a deep copy of Address- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for Address- Returns:
- builder
-
builder
create builder for Address instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withAddress
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
-