Interface BooleanField
- All Superinterfaces:
CustomField
A field with a boolean value.
Example to create an instance using the builder pattern
BooleanField booleanField = BooleanField.builder()
.value(true)
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BooleanFieldBuilder
builder()
builder factory method for BooleanFieldstatic BooleanFieldBuilder
builder
(BooleanField template) create builder for BooleanField instancestatic BooleanField
deepCopy
(BooleanField template) factory method to create a deep copy of BooleanField@NotNull Boolean
getValue()
static BooleanField
of()
factory methodstatic BooleanField
of
(BooleanField template) factory method to create a shallow copy BooleanFieldvoid
set valuestatic com.fasterxml.jackson.core.type.TypeReference<BooleanField>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withBooleanField
(Function<BooleanField, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.customfields.CustomField
getType, withCustomField
-
Field Details
-
BOOLEAN
discriminator value for BooleanField- See Also:
-
-
Method Details
-
getValue
- Returns:
- value
-
setValue
set value- Parameters:
value
- value to be set
-
of
factory method- Returns:
- instance of BooleanField
-
of
factory method to create a shallow copy BooleanField- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of BooleanField- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BooleanField- Returns:
- builder
-
builder
create builder for BooleanField instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withBooleanField
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
-