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.
-
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 TypeMethodDescriptionboolean
getMeta()
Supplementary information about the data used for similarity estimation.Reference to ProductID of the ProductVariant that was compared.int
hashCode()
void
setMeta
(SimilarProductMeta meta) Supplementary information about the data used for similarity estimation.void
setProduct
(ProductReference product) Reference to Productvoid
setVariantId
(Long variantId) ID of the ProductVariant that was compared.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.ml.models.similar_products.SimilarProduct
withSimilarProduct
-
Constructor Details
-
SimilarProductImpl
public SimilarProductImpl()create empty instance
-
-
Method Details
-
getProduct
Reference to Product
- Specified by:
getProduct
in interfaceSimilarProduct
- Returns:
- product
-
getVariantId
ID of the ProductVariant that was compared.
- Specified by:
getVariantId
in interfaceSimilarProduct
- Returns:
- variantId
-
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 interfaceSimilarProduct
- Returns:
- meta
-
setProduct
Description copied from interface:SimilarProduct
Reference to Product
- Specified by:
setProduct
in interfaceSimilarProduct
- Parameters:
product
- value to be set
-
setVariantId
Description copied from interface:SimilarProduct
ID of the ProductVariant that was compared.
- Specified by:
setVariantId
in interfaceSimilarProduct
- Parameters:
variantId
- value to be set
-
setMeta
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 interfaceSimilarProduct
- Parameters:
meta
- value to be set
-
equals
-
hashCode
public int hashCode()
-