Interface CustomFieldSetType
- All Superinterfaces:
FieldType
Values of a SetType Custom Field are sets of values of the specified elementType
(without duplicate elements).
Example to create an instance using the builder pattern
CustomFieldSetType customFieldSetType = CustomFieldSetType.builder()
.elementType(elementTypeBuilder -> elementTypeBuilder)
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomFieldSetTypeBuilder
builder()
builder factory method for CustomFieldSetTypestatic CustomFieldSetTypeBuilder
builder
(CustomFieldSetType template) create builder for CustomFieldSetType instancestatic CustomFieldSetType
deepCopy
(CustomFieldSetType template) factory method to create a deep copy of CustomFieldSetType@NotNull @Valid FieldType
Field type of the elements in the set.static CustomFieldSetType
of()
factory methodstatic CustomFieldSetType
of
(CustomFieldSetType template) factory method to create a shallow copy CustomFieldSetTypevoid
setElementType
(FieldType elementType) Field type of the elements in the set.static com.fasterxml.jackson.core.type.TypeReference<CustomFieldSetType>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCustomFieldSetType
(Function<CustomFieldSetType, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.type.FieldType
getName, withFieldType
-
Field Details
-
SET
discriminator value for CustomFieldSetType- See Also:
-
-
Method Details
-
getElementType
Field type of the elements in the set.
- Returns:
- elementType
-
setElementType
Field type of the elements in the set.
- Parameters:
elementType
- value to be set
-
of
factory method- Returns:
- instance of CustomFieldSetType
-
of
factory method to create a shallow copy CustomFieldSetType- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CustomFieldSetType- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomFieldSetType- Returns:
- builder
-
builder
create builder for CustomFieldSetType instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomFieldSetType
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
-