Class FilterAttributeValue
java.lang.Object
de.hybris.platform.classification.filter.FilterAttributeValue
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionFilterAttributeValue(Object value, long count, ClassificationAttributeUnitModel unit, boolean filtered) Initialize this instance. -
Method Summary
-
Constructor Details
-
FilterAttributeValue
public FilterAttributeValue(Object value, long count, ClassificationAttributeUnitModel unit, boolean filtered) Initialize this instance.- Parameters:
value- the value of the attributecount- the number of filtered products with this attribute valueunit- the unit of the valuefiltered- true if this attribute value was part of the filter
-
-
Method Details
-
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
-
compareTo
- Specified by:
compareToin interfaceComparable<FilterAttributeValue>
-