Class NumberSetFieldBuilder
java.lang.Object
com.commercetools.importapi.models.customfields.NumberSetFieldBuilder
- All Implemented Interfaces:
Builder<NumberSetField>
NumberSetFieldBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
NumberSetField numberSetField = NumberSetField.builder()
.plusValue(valueBuilder -> valueBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds NumberSetField with checking for non-null required valuesbuilds NumberSetField without checking for non-null required valuesgetValue()
value of value}static NumberSetFieldBuilder
of()
factory method for an instance of NumberSetFieldBuilderstatic NumberSetFieldBuilder
of
(NumberSetField template) create builder for NumberSetField instanceadd values to the valueset values to the valueset value to the value
-
Constructor Details
-
NumberSetFieldBuilder
public NumberSetFieldBuilder()
-
-
Method Details
-
value
set values to the value- Parameters:
value
- value to be set- Returns:
- Builder
-
value
set value to the value- Parameters:
value
- value to be set- Returns:
- Builder
-
plusValue
add values to the value- Parameters:
value
- value to be set- Returns:
- Builder
-
getValue
value of value}- Returns:
- value
-
build
builds NumberSetField with checking for non-null required values- Specified by:
build
in interfaceBuilder<NumberSetField>
- Returns:
- NumberSetField
-
buildUnchecked
builds NumberSetField without checking for non-null required values- Returns:
- NumberSetField
-
of
factory method for an instance of NumberSetFieldBuilder- Returns:
- builder
-
of
create builder for NumberSetField instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-