Class ProjectCategoryRecommendationImpl

java.lang.Object
com.commercetools.ml.models.category_recommendations.ProjectCategoryRecommendationImpl
All Implemented Interfaces:
ProjectCategoryRecommendation, io.vrap.rmf.base.client.ModelBase

public class ProjectCategoryRecommendationImpl extends Object implements ProjectCategoryRecommendation, io.vrap.rmf.base.client.ModelBase
ProjectCategoryRecommendation
  • Constructor Details

    • ProjectCategoryRecommendationImpl

      public ProjectCategoryRecommendationImpl()
      create empty instance
  • Method Details

    • getCategory

      public CategoryReference getCategory()

      A category that is recommended for a product.

      Specified by:
      getCategory in interface ProjectCategoryRecommendation
      Returns:
      category
    • getConfidence

      public Double getConfidence()

      Probability score for the category recommendation.

      Specified by:
      getConfidence in interface ProjectCategoryRecommendation
      Returns:
      confidence
    • getPath

      public String 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:
      getPath in interface ProjectCategoryRecommendation
      Returns:
      path
    • setCategory

      public void setCategory(CategoryReference category)
      Description copied from interface: ProjectCategoryRecommendation

      A category that is recommended for a product.

      Specified by:
      setCategory in interface ProjectCategoryRecommendation
      Parameters:
      category - value to be set
    • setConfidence

      public void setConfidence(Double confidence)
      Description copied from interface: ProjectCategoryRecommendation

      Probability score for the category recommendation.

      Specified by:
      setConfidence in interface ProjectCategoryRecommendation
      Parameters:
      confidence - value to be set
    • setPath

      public void setPath(String path)
      Description copied from interface: ProjectCategoryRecommendation

      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:
      setPath in interface ProjectCategoryRecommendation
      Parameters:
      path - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object