Class SimilarityMeasuresBuilder
java.lang.Object
com.commercetools.ml.models.similar_products.SimilarityMeasuresBuilder
- All Implemented Interfaces:
Builder<SimilarityMeasures>
SimilarityMeasuresBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SimilarityMeasures similarityMeasures = SimilarityMeasures.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionImportance of thedescription
attribute in overall similarity.build()
builds SimilarityMeasures with checking for non-null required valuesbuilds SimilarityMeasures without checking for non-null required valuesdescription
(Long description) Importance of thedescription
attribute in overall similarity.Importance of thedescription
attribute in overall similarity.Importance of thedescription
attribute in overall similarity.getName()
Importance of thename
attribute in overall similarity.getPrice()
Importance of theprice
attribute in overall similarity.Importance of the number of product variants in overall similarity.Importance of thename
attribute in overall similarity.static SimilarityMeasuresBuilder
of()
factory method for an instance of SimilarityMeasuresBuilderstatic SimilarityMeasuresBuilder
of
(SimilarityMeasures template) create builder for SimilarityMeasures instanceImportance of theprice
attribute in overall similarity.variantCount
(Long variantCount) Importance of the number of product variants in overall similarity.
-
Constructor Details
-
SimilarityMeasuresBuilder
public SimilarityMeasuresBuilder()
-
-
Method Details
-
name
Importance of the
name
attribute in overall similarity.- Parameters:
name
- value to be set- Returns:
- Builder
-
description
Importance of the
description
attribute in overall similarity.- Parameters:
description
- value to be set- Returns:
- Builder
-
attribute
Importance of the
description
attribute in overall similarity.- Parameters:
attribute
- value to be set- Returns:
- Builder
-
variantCount
Importance of the number of product variants in overall similarity.
- Parameters:
variantCount
- value to be set- Returns:
- Builder
-
price
Importance of the
price
attribute in overall similarity.- Parameters:
price
- value to be set- Returns:
- Builder
-
getName
Importance of the
name
attribute in overall similarity.- Returns:
- name
-
getDescription
Importance of the
description
attribute in overall similarity.- Returns:
- description
-
getAttribute
Importance of the
description
attribute in overall similarity.- Returns:
- attribute
-
getVariantCount
Importance of the number of product variants in overall similarity.
- Returns:
- variantCount
-
getPrice
Importance of the
price
attribute in overall similarity.- Returns:
- price
-
build
builds SimilarityMeasures with checking for non-null required values- Specified by:
build
in interfaceBuilder<SimilarityMeasures>
- Returns:
- SimilarityMeasures
-
buildUnchecked
builds SimilarityMeasures without checking for non-null required values- Returns:
- SimilarityMeasures
-
of
factory method for an instance of SimilarityMeasuresBuilder- Returns:
- builder
-
of
create builder for SimilarityMeasures instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-