Class SimilarProductImpl

java.lang.Object
com.commercetools.ml.models.similar_products.SimilarProductImpl
All Implemented Interfaces:
SimilarProduct, io.vrap.rmf.base.client.ModelBase

public class SimilarProductImpl extends Object implements SimilarProduct, io.vrap.rmf.base.client.ModelBase

One part of a SimilarProductPair. Refers to a specific ProductVariant.

  • Constructor Details

    • SimilarProductImpl

      public SimilarProductImpl()
      create empty instance
  • Method Details

    • getProduct

      public ProductReference getProduct()

      Reference to Product

      Specified by:
      getProduct in interface SimilarProduct
      Returns:
      product
    • getVariantId

      public Long getVariantId()

      ID of the ProductVariant that was compared.

      Specified by:
      getVariantId in interface SimilarProduct
      Returns:
      variantId
    • getMeta

      public SimilarProductMeta getMeta()

      Supplementary information about the data used for similarity estimation. This information helps you understand the estimated confidence score, but it should not be used to identify a product.

      Specified by:
      getMeta in interface SimilarProduct
      Returns:
      meta
    • setProduct

      public void setProduct(ProductReference product)
      Description copied from interface: SimilarProduct

      Reference to Product

      Specified by:
      setProduct in interface SimilarProduct
      Parameters:
      product - value to be set
    • setVariantId

      public void setVariantId(Long variantId)
      Description copied from interface: SimilarProduct

      ID of the ProductVariant that was compared.

      Specified by:
      setVariantId in interface SimilarProduct
      Parameters:
      variantId - value to be set
    • setMeta

      public void setMeta(SimilarProductMeta meta)
      Description copied from interface: SimilarProduct

      Supplementary information about the data used for similarity estimation. This information helps you understand the estimated confidence score, but it should not be used to identify a product.

      Specified by:
      setMeta in interface SimilarProduct
      Parameters:
      meta - value to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object