Class ProjectCategoryRecommendationImpl
- All Implemented Interfaces:
ProjectCategoryRecommendation,io.vrap.rmf.base.client.ModelBase
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanA category that is recommended for a product.Probability score for the category recommendation.getPath()Breadcrumb path to the recommended category.inthashCode()voidsetCategory(CategoryReference category) A category that is recommended for a product.voidsetConfidence(Double confidence) Probability score for the category recommendation.voidBreadcrumb path to the recommended category.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionStringMethods inherited from interface com.commercetools.ml.models.category_recommendations.ProjectCategoryRecommendation
withProjectCategoryRecommendation
-
Constructor Details
-
ProjectCategoryRecommendationImpl
public ProjectCategoryRecommendationImpl()create empty instance
-
-
Method Details
-
getCategory
A category that is recommended for a product.
- Specified by:
getCategoryin interfaceProjectCategoryRecommendation- Returns:
- category
-
getConfidence
Probability score for the category recommendation.
- Specified by:
getConfidencein interfaceProjectCategoryRecommendation- Returns:
- confidence
-
getPath
Breadcrumb path to the recommended category. This only picks up one language, not all available languages for the category. English is prioritized, but if English data is not available, an arbitrary language is selected. Do not use this to identify a category,use the category ID from the category reference instead.
- Specified by:
getPathin interfaceProjectCategoryRecommendation- Returns:
- path
-
setCategory
Description copied from interface:ProjectCategoryRecommendationA category that is recommended for a product.
- Specified by:
setCategoryin interfaceProjectCategoryRecommendation- Parameters:
category- value to be set
-
setConfidence
Description copied from interface:ProjectCategoryRecommendationProbability score for the category recommendation.
- Specified by:
setConfidencein interfaceProjectCategoryRecommendation- Parameters:
confidence- value to be set
-
setPath
Description copied from interface:ProjectCategoryRecommendationBreadcrumb path to the recommended category. This only picks up one language, not all available languages for the category. English is prioritized, but if English data is not available, an arbitrary language is selected. Do not use this to identify a category,use the category ID from the category reference instead.
- Specified by:
setPathin interfaceProjectCategoryRecommendation- Parameters:
path- value to be set
-
equals
-
hashCode
public int hashCode()
-