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

    Constructors
    Constructor
    Description
    create empty instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    void
    setValue(String key, String value)
    A string representing a number between 0 and 1 that must start with 0. and cannot end with 0.
    A string representing a number between 0 and 1 that must start with 0. and cannot end with 0.

    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

      public Map<String,String> values()

      A string representing a number between 0 and 1 that must start with 0. and cannot end with 0.

      Specified by:
      values in interface CategoryOrderHints
      Returns:
      map of the pattern property values
    • setValue

      public void setValue(String key, String value)
      Description copied from interface: CategoryOrderHints

      A string representing a number between 0 and 1 that must start with 0. and cannot end with 0.

      Specified by:
      setValue in interface CategoryOrderHints
      Parameters:
      key - property name
      value - property value
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object