Class DateTimeSetFieldBuilder
- All Implemented Interfaces:
Builder<DateTimeSetField>
Example to create an instance using the builder pattern
DateTimeSetField dateTimeSetField = DateTimeSetField.builder()
.plusValue(valueBuilder -> valueBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds DateTimeSetField with checking for non-null required valuesbuilds DateTimeSetField without checking for non-null required valuesgetValue()
JSON array of date time values in the formatYYYY-MM-DDTHH:mm:ss.SSSZ
without duplicates.static DateTimeSetFieldBuilder
of()
factory method for an instance of DateTimeSetFieldBuilderstatic DateTimeSetFieldBuilder
of
(DateTimeSetField template) create builder for DateTimeSetField instanceplusValue
(ZonedDateTime... value) JSON array of date time values in the formatYYYY-MM-DDTHH:mm:ss.SSSZ
without duplicates.value
(ZonedDateTime... value) JSON array of date time values in the formatYYYY-MM-DDTHH:mm:ss.SSSZ
without duplicates.value
(List<ZonedDateTime> value) JSON array of date time values in the formatYYYY-MM-DDTHH:mm:ss.SSSZ
without duplicates.
-
Constructor Details
-
DateTimeSetFieldBuilder
public DateTimeSetFieldBuilder()
-
-
Method Details
-
value
JSON array of date time values in the format
YYYY-MM-DDTHH:mm:ss.SSSZ
without duplicates. 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. The order of items in the array is not fixed.- Parameters:
value
- value to be set- Returns:
- Builder
-
value
JSON array of date time values in the format
YYYY-MM-DDTHH:mm:ss.SSSZ
without duplicates. 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. The order of items in the array is not fixed.- Parameters:
value
- value to be set- Returns:
- Builder
-
plusValue
JSON array of date time values in the format
YYYY-MM-DDTHH:mm:ss.SSSZ
without duplicates. 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. The order of items in the array is not fixed.- Parameters:
value
- value to be set- Returns:
- Builder
-
getValue
JSON array of date time values in the format
YYYY-MM-DDTHH:mm:ss.SSSZ
without duplicates. 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. The order of items in the array is not fixed.- Returns:
- value
-
build
builds DateTimeSetField with checking for non-null required values- Specified by:
build
in interfaceBuilder<DateTimeSetField>
- Returns:
- DateTimeSetField
-
buildUnchecked
builds DateTimeSetField without checking for non-null required values- Returns:
- DateTimeSetField
-
of
factory method for an instance of DateTimeSetFieldBuilder- Returns:
- builder
-
of
create builder for DateTimeSetField instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-