Class EnumSetFieldBuilder
- All Implemented Interfaces:
Builder<EnumSetField>
Example to create an instance using the builder pattern
EnumSetField enumSetField = EnumSetField.builder()
.plusValue(valueBuilder -> valueBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds EnumSetField with checking for non-null required valuesbuilds EnumSetField without checking for non-null required valuesgetValue()
JSON array of enum values, each represented by its key.static EnumSetFieldBuilder
of()
factory method for an instance of EnumSetFieldBuilderstatic EnumSetFieldBuilder
of
(EnumSetField template) create builder for EnumSetField instanceJSON array of enum values, each represented by its key.JSON array of enum values, each represented by its key.JSON array of enum values, each represented by its key.
-
Constructor Details
-
EnumSetFieldBuilder
public EnumSetFieldBuilder()
-
-
Method Details
-
value
JSON array of enum values, each represented by its key. Each key must match the key of a CustomFieldLocalizedEnumValue in the CustomFieldEnumType. The order of items in the array is not fixed.
- Parameters:
value
- value to be set- Returns:
- Builder
-
value
JSON array of enum values, each represented by its key. Each key must match the key of a CustomFieldLocalizedEnumValue in the CustomFieldEnumType. The order of items in the array is not fixed.
- Parameters:
value
- value to be set- Returns:
- Builder
-
plusValue
JSON array of enum values, each represented by its key. Each key must match the key of a CustomFieldLocalizedEnumValue in the CustomFieldEnumType. The order of items in the array is not fixed.
- Parameters:
value
- value to be set- Returns:
- Builder
-
getValue
JSON array of enum values, each represented by its key. Each key must match the key of a CustomFieldLocalizedEnumValue in the CustomFieldEnumType. The order of items in the array is not fixed.
- Returns:
- value
-
build
builds EnumSetField with checking for non-null required values- Specified by:
build
in interfaceBuilder<EnumSetField>
- Returns:
- EnumSetField
-
buildUnchecked
builds EnumSetField without checking for non-null required values- Returns:
- EnumSetField
-
of
factory method for an instance of EnumSetFieldBuilder- Returns:
- builder
-
of
create builder for EnumSetField instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-