Interface TimeField
- All Superinterfaces:
CustomField
A field with a time value.
Example to create an instance using the builder pattern
TimeField timeField = TimeField.builder()
.value(LocalTime.parse("12:00:00.301"))
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TimeFieldBuilder
builder()
builder factory method for TimeFieldstatic TimeFieldBuilder
create builder for TimeField instancestatic TimeField
factory method to create a deep copy of TimeField@NotNull LocalTime
getValue()
static TimeField
of()
factory methodstatic TimeField
factory method to create a shallow copy TimeFieldvoid
set valuestatic com.fasterxml.jackson.core.type.TypeReference<TimeField>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withTimeField
(Function<TimeField, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.customfields.CustomField
getType, withCustomField
-
Field Details
-
TIME
discriminator value for TimeField- See Also:
-
-
Method Details
-
getValue
- Returns:
- value
-
setValue
set value- Parameters:
value
- value to be set
-
of
factory method- Returns:
- instance of TimeField
-
of
factory method to create a shallow copy TimeField- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of TimeField- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for TimeField- Returns:
- builder
-
builder
create builder for TimeField instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withTimeField
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
-