Class FacetRange

java.lang.Object
com.broadleafcommerce.search.api.domain.FacetRange
All Implemented Interfaces:
Serializable

public class FacetRange extends Object implements Serializable
Represents a selectable option of a search facet. This could be a range (e.g. price range) a color, or any other attribute.
See Also:
  • Constructor Details

    • FacetRange

      public FacetRange()
  • Method Details

    • getLabel

      public String getLabel()
      The label for this facet range, suitable for display.
      Returns:
      label for this facet range, suitable for display
    • getDisplayOrder

      public Integer getDisplayOrder()
      Order in which to display this range on a list of facet ranges. A lower number indicates this item will occur earlier in the returned facet range list.
      Returns:
      order in which this range should appear in a list
    • getMinValue

      public String getMinValue()
      The lowest value included in this facet range.
      Returns:
      range's lowest value
    • getMaxValue

      public String getMaxValue()
      The highest value included in this facet range.
      Returns:
      range's highest value
    • setLabel

      public void setLabel(String label)
      The label for this facet range, suitable for display.
      Parameters:
      label - label for this facet range, suitable for display
    • setDisplayOrder

      public void setDisplayOrder(Integer displayOrder)
      Order in which to display this range on a list of facet ranges. A lower number indicates this item will occur earlier in the returned facet range list.
      Parameters:
      displayOrder - order in which this range should appear in a list
    • setMinValue

      public void setMinValue(String minValue)
      The lowest value included in this facet range.
      Parameters:
      minValue - range's lowest value
    • setMaxValue

      public void setMaxValue(String maxValue)
      The highest value included in this facet range.
      Parameters:
      maxValue - range's highest value
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object