Class TimeFieldBuilder
java.lang.Object
com.commercetools.importapi.models.customfields.TimeFieldBuilder
TimeFieldBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
TimeField timeField = TimeField.builder()
.value(LocalTime.parse("12:00:00.301"))
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds TimeField with checking for non-null required valuesbuilds TimeField without checking for non-null required valuesgetValue()
A time value in the formatHH:mm:ss.SSS
.static TimeFieldBuilder
of()
factory method for an instance of TimeFieldBuilderstatic TimeFieldBuilder
create builder for TimeField instanceA time value in the formatHH:mm:ss.SSS
.
-
Constructor Details
-
TimeFieldBuilder
public TimeFieldBuilder()
-
-
Method Details
-
value
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:mm
orZ
for UTC.- Parameters:
value
- value to be set- Returns:
- Builder
-
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:mm
orZ
for UTC.- Returns:
- value
-
build
builds TimeField with checking for non-null required values -
buildUnchecked
builds TimeField without checking for non-null required values- Returns:
- TimeField
-
of
factory method for an instance of TimeFieldBuilder- Returns:
- builder
-
of
create builder for TimeField instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-