Interface DateSetField
- All Superinterfaces:
CustomField
A field with a date set value.
Example to create an instance using the builder pattern
DateSetField dateSetField = DateSetField.builder()
.plusValue(valueBuilder -> valueBuilder)
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic DateSetFieldBuilderbuilder()builder factory method for DateSetFieldstatic DateSetFieldBuilderbuilder(DateSetField template) create builder for DateSetField instancecopyDeep()static DateSetFielddeepCopy(DateSetField template) factory method to create a deep copy of DateSetFieldgetValue()JSON array of date values in the formatYYYY-MM-DDwithout duplicates.static DateSetFieldof()factory methodstatic DateSetFieldof(DateSetField template) factory method to create a shallow copy DateSetFieldvoidJSON array of date values in the formatYYYY-MM-DDwithout duplicates.voidJSON array of date values in the formatYYYY-MM-DDwithout duplicates.static com.fasterxml.jackson.core.type.TypeReference<DateSetField>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithDateSetField(Function<DateSetField, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.customfields.CustomField
getType, withCustomField
-
Field Details
-
DATE_SET
discriminator value for DateSetField- See Also:
-
-
Method Details
-
getValue
JSON array of date values in the format
YYYY-MM-DDwithout duplicates. The order of items in the array is not fixed.- Returns:
- value
-
setValue
JSON array of date values in the format
YYYY-MM-DDwithout duplicates. The order of items in the array is not fixed.- Parameters:
value- values to be set
-
setValue
JSON array of date values in the format
YYYY-MM-DDwithout duplicates. The order of items in the array is not fixed.- Parameters:
value- values to be set
-
of
factory method- Returns:
- instance of DateSetField
-
of
factory method to create a shallow copy DateSetField- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
DateSetField copyDeep()- Specified by:
copyDeepin interfaceCustomField
-
deepCopy
factory method to create a deep copy of DateSetField- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DateSetField- Returns:
- builder
-
builder
create builder for DateSetField instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withDateSetField
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
-