Class CategoryOrderHintsBuilder
java.lang.Object
com.commercetools.api.models.product.CategoryOrderHintsBuilder
- All Implemented Interfaces:
Builder<CategoryOrderHints>
CategoryOrderHintsBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CategoryOrderHints categoryOrderHints = CategoryOrderHints.builder()
./[0-9].[0-9]*[1-9]/("{/[0-9].[0-9]*[1-9]/}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionA string representing a number between 0 and 1 that must start with0.
and cannot end with0
.build()
builds CategoryOrderHints with checking for non-null required valuesbuilds CategoryOrderHints without checking for non-null required valuesA string representing a number between 0 and 1 that must start with0.
and cannot end with0
.static CategoryOrderHintsBuilder
of()
factory method for an instance of CategoryOrderHintsBuilderstatic CategoryOrderHintsBuilder
of
(CategoryOrderHints template) create builder for CategoryOrderHints instanceA string representing a number between 0 and 1 that must start with0.
and cannot end with0
.
-
Constructor Details
-
CategoryOrderHintsBuilder
public CategoryOrderHintsBuilder()
-
-
Method Details
-
values
A string representing a number between 0 and 1 that must start with
0.
and cannot end with0
.- Parameters:
values
- properties to be set- Returns:
- Builder
-
addValue
A string representing a number between 0 and 1 that must start with
0.
and cannot end with0
.- Parameters:
key
- property namevalue
- property value- Returns:
- Builder
-
getValues
A string representing a number between 0 and 1 that must start with
0.
and cannot end with0
.- Returns:
- pattern properties
-
build
builds CategoryOrderHints with checking for non-null required values- Specified by:
build
in interfaceBuilder<CategoryOrderHints>
- Returns:
- CategoryOrderHints
-
buildUnchecked
builds CategoryOrderHints without checking for non-null required values- Returns:
- CategoryOrderHints
-
of
factory method for an instance of CategoryOrderHintsBuilder- Returns:
- builder
-
of
create builder for CategoryOrderHints instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-