Interface BooleanSetField
- All Superinterfaces:
CustomField
A field with a boolean set value.
Example to create an instance using the builder pattern
BooleanSetField booleanSetField = BooleanSetField.builder()
.plusValue(valueBuilder -> valueBuilder)
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic BooleanSetFieldBuilderbuilder()builder factory method for BooleanSetFieldstatic BooleanSetFieldBuilderbuilder(BooleanSetField template) create builder for BooleanSetField instancecopyDeep()static BooleanSetFielddeepCopy(BooleanSetField template) factory method to create a deep copy of BooleanSetFieldgetValue()JSON array of boolean values without duplicates.static BooleanSetFieldof()factory methodstatic BooleanSetFieldof(BooleanSetField template) factory method to create a shallow copy BooleanSetFieldvoidJSON array of boolean values without duplicates.voidJSON array of boolean values without duplicates.static com.fasterxml.jackson.core.type.TypeReference<BooleanSetField>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithBooleanSetField(Function<BooleanSetField, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.customfields.CustomField
getType, withCustomField
-
Field Details
-
BOOLEAN_SET
discriminator value for BooleanSetField- See Also:
-
-
Method Details
-
getValue
JSON array of boolean values without duplicates. The order of items in the array is not fixed.
- Returns:
- value
-
setValue
JSON array of boolean values without duplicates. The order of items in the array is not fixed.
- Parameters:
value- values to be set
-
setValue
JSON array of boolean values without duplicates. The order of items in the array is not fixed.
- Parameters:
value- values to be set
-
of
factory method- Returns:
- instance of BooleanSetField
-
of
factory method to create a shallow copy BooleanSetField- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
BooleanSetField copyDeep()- Specified by:
copyDeepin interfaceCustomField
-
deepCopy
factory method to create a deep copy of BooleanSetField- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BooleanSetField- Returns:
- builder
-
builder
create builder for BooleanSetField instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withBooleanSetField
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
-