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