Class DefaultFacetSortProvider
- java.lang.Object
-
- de.hybris.platform.solrfacetsearch.config.impl.DefaultFacetSortProvider
-
- All Implemented Interfaces:
FacetSortProvider
public class DefaultFacetSortProvider extends java.lang.Object implements FacetSortProvider
Default sort provider for facets.
-
-
Constructor Summary
Constructors Constructor Description DefaultFacetSortProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Comparator<FacetValue>getComparatorForTypeAndProperty(IndexedType indexedType, IndexedProperty indexedProperty)Get the comparator for the type and propertybooleanisDescending()voidsetComparator(java.util.Comparator<FacetValue> comparator)voidsetDescending(boolean descending)
-
-
-
Method Detail
-
isDescending
public boolean isDescending()
-
setDescending
public void setDescending(boolean descending)
-
getComparatorForTypeAndProperty
public java.util.Comparator<FacetValue> getComparatorForTypeAndProperty(IndexedType indexedType, IndexedProperty indexedProperty)
Description copied from interface:FacetSortProviderGet the comparator for the type and property- Specified by:
getComparatorForTypeAndPropertyin interfaceFacetSortProvider- Parameters:
indexedType- the typeindexedProperty- the property- Returns:
- the comparator
-
setComparator
public void setComparator(java.util.Comparator<FacetValue> comparator)
-
-