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 TypeMethodDescriptionbooleangetMeta()Supplementary information about the data used for similarity estimation.Reference to ProductID of the ProductVariant that was compared.inthashCode()voidsetMeta(SimilarProductMeta meta) Supplementary information about the data used for similarity estimation.voidsetProduct(ProductReference product) Reference to ProductvoidsetVariantId(Long variantId) ID of the ProductVariant that was compared.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.similar_products.SimilarProduct
withSimilarProduct
-
Constructor Details
-
SimilarProductImpl
public SimilarProductImpl()create empty instance
-
-
Method Details
-
getProduct
Reference to Product
- Specified by:
getProductin interfaceSimilarProduct- Returns:
- product
-
getVariantId
ID of the ProductVariant that was compared.
- Specified by:
getVariantIdin 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:
getMetain interfaceSimilarProduct- Returns:
- meta
-
setProduct
Description copied from interface:SimilarProductReference to Product
- Specified by:
setProductin interfaceSimilarProduct- Parameters:
product- value to be set
-
setVariantId
Description copied from interface:SimilarProductID of the ProductVariant that was compared.
- Specified by:
setVariantIdin interfaceSimilarProduct- Parameters:
variantId- value to be set
-
setMeta
Description copied from interface:SimilarProductSupplementary 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:
setMetain interfaceSimilarProduct- Parameters:
meta- value to be set
-
equals
-
hashCode
public int hashCode()
-