Class LocalizedLabelBuilder
java.lang.Object
com.commercetools.history.models.label.LocalizedLabelBuilder
- All Implemented Interfaces:
Builder<LocalizedLabel>
LocalizedLabelBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
LocalizedLabel localizedLabel = LocalizedLabel.builder()
.value(valueBuilder -> valueBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds LocalizedLabel with checking for non-null required valuesbuilds LocalizedLabel without checking for non-null required valuesgetValue()
Changed value.static LocalizedLabelBuilder
of()
factory method for an instance of LocalizedLabelBuilderstatic LocalizedLabelBuilder
of
(LocalizedLabel template) create builder for LocalizedLabel instancevalue
(LocalizedString value) Changed value.Changed value.Changed value.
-
Constructor Details
-
LocalizedLabelBuilder
public LocalizedLabelBuilder()
-
-
Method Details
-
value
Changed value.
- Parameters:
builder
- function to build the value value- Returns:
- Builder
-
withValue
Changed value.
- Parameters:
builder
- function to build the value value- Returns:
- Builder
-
value
Changed value.
- Parameters:
value
- value to be set- Returns:
- Builder
-
getValue
Changed value.
- Returns:
- value
-
build
builds LocalizedLabel with checking for non-null required values- Specified by:
build
in interfaceBuilder<LocalizedLabel>
- Returns:
- LocalizedLabel
-
buildUnchecked
builds LocalizedLabel without checking for non-null required values- Returns:
- LocalizedLabel
-
of
factory method for an instance of LocalizedLabelBuilder- Returns:
- builder
-
of
create builder for LocalizedLabel instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-