Class CategoryOrderHintsImpl
java.lang.Object
com.commercetools.api.models.product.CategoryOrderHintsImpl
- All Implemented Interfaces:
CategoryOrderHints
,io.vrap.rmf.base.client.ModelBase
public class CategoryOrderHintsImpl
extends Object
implements CategoryOrderHints, io.vrap.rmf.base.client.ModelBase
JSON object where the key is a Category id
and the value is an order hint. Allows controlling the order of Products and how they appear in Categories. Products with no order hint have an order score below 0
. Order hints are non-unique. If a subset of Products have the same value for order hint in a specific category, the behavior is undetermined.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.product.CategoryOrderHints
withCategoryOrderHints
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
CategoryOrderHintsImpl
public CategoryOrderHintsImpl()create empty instance
-
-
Method Details
-
values
A string representing a number between 0 and 1 that must start with
0.
and cannot end with0
.- Specified by:
values
in interfaceCategoryOrderHints
- Returns:
- map of the pattern property values
-
setValue
Description copied from interface:CategoryOrderHints
A string representing a number between 0 and 1 that must start with
0.
and cannot end with0
.- Specified by:
setValue
in interfaceCategoryOrderHints
- Parameters:
key
- property namevalue
- property value
-
equals
-
hashCode
public int hashCode()
-