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
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic TimeFieldBuilderbuilder()builder factory method for TimeFieldstatic TimeFieldBuildercreate builder for TimeField instancecopyDeep()static TimeFieldfactory method to create a deep copy of TimeField@NotNull LocalTimegetValue()A time value in the formatHH:mm:ss.SSS.static TimeFieldof()factory methodstatic TimeFieldfactory method to create a shallow copy TimeFieldvoidA time value in the formatHH:mm:ss.SSS.static com.fasterxml.jackson.core.type.TypeReference<TimeField>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithTimeField(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
A time value in the format
HH:mm:ss.SSS. The time zone is optional and defaults to UTC if not specified. If the time zone is specified, it must be in the format±HH:mmorZfor UTC.- Returns:
- value
-
setValue
A time value in the format
HH:mm:ss.SSS. The time zone is optional and defaults to UTC if not specified. If the time zone is specified, it must be in the format±HH:mmorZfor UTC.- 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
-
copyDeep
TimeField copyDeep()- Specified by:
copyDeepin interfaceCustomField
-
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
-