Class FilterAttributeValue

java.lang.Object
de.hybris.platform.classification.filter.FilterAttributeValue
All Implemented Interfaces:
Comparable<FilterAttributeValue>

public class FilterAttributeValue extends Object implements Comparable<FilterAttributeValue>
A possible value for a classifcation attribute. Part of a FilterAttribute. Comes with information on how many products with this values exist within the set of filtered products. If this value was part of the product filter the method isFiltered() will return true.
  • Constructor Details

    • FilterAttributeValue

      public FilterAttributeValue(Object value, long count, ClassificationAttributeUnitModel unit, boolean filtered)
      Initialize this instance.
      Parameters:
      value - the value of the attribute
      count - the number of filtered products with this attribute value
      unit - the unit of the value
      filtered - true if this attribute value was part of the filter
  • Method Details

    • getValue

      public Object getValue()
      The actual value.
      Returns:
      the value
    • getCount

      public long getCount()
      The number of filtered products with this value.
      Returns:
      the number of filtered products with this value
    • getUnit

      The unit of this value.
      Returns:
      the unit of this value
    • isFiltered

      public boolean isFiltered()
      Returns true if this value was part of the product filter.
      Returns:
      true if this value was part of the product filter
    • toString

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

      public int compareTo(FilterAttributeValue filterAttributeValue)
      Specified by:
      compareTo in interface Comparable<FilterAttributeValue>