Class ResultItemImpl
java.lang.Object
com.commercetools.ml.models.image_search.ResultItemImpl
- All Implemented Interfaces:
ResultItem,io.vrap.rmf.base.client.ModelBase
An image URL and the product variants it is contained in. If no matching images are found, ResultItem is not present.
-
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 TypeMethodDescriptionbooleanThe URL of the image.An array of product variants containing the image URL.inthashCode()voidsetImageUrl(String imageUrl) The URL of the image.voidsetProductVariants(ProductVariant... productVariants) An array of product variants containing the image URL.voidsetProductVariants(List<ProductVariant> productVariants) An array of product variants containing the image URL.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.image_search.ResultItem
withResultItem
-
Constructor Details
-
ResultItemImpl
public ResultItemImpl()create empty instance
-
-
Method Details
-
getImageUrl
The URL of the image.
- Specified by:
getImageUrlin interfaceResultItem- Returns:
- imageUrl
-
getProductVariants
An array of product variants containing the image URL.
- Specified by:
getProductVariantsin interfaceResultItem- Returns:
- productVariants
-
setImageUrl
Description copied from interface:ResultItemThe URL of the image.
- Specified by:
setImageUrlin interfaceResultItem- Parameters:
imageUrl- value to be set
-
setProductVariants
Description copied from interface:ResultItemAn array of product variants containing the image URL.
- Specified by:
setProductVariantsin interfaceResultItem- Parameters:
productVariants- values to be set
-
setProductVariants
Description copied from interface:ResultItemAn array of product variants containing the image URL.
- Specified by:
setProductVariantsin interfaceResultItem- Parameters:
productVariants- values to be set
-
equals
-
hashCode
public int hashCode()
-