Class DefaultFacetSortProvider
java.lang.Object
de.hybris.platform.solrfacetsearch.config.impl.DefaultFacetSortProvider
- All Implemented Interfaces:
FacetSortProvider
Default sort provider for facets.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComparatorForTypeAndProperty(IndexedType indexedType, IndexedProperty indexedProperty) Get the comparator for the type and propertybooleanvoidsetComparator(Comparator<FacetValue> comparator) voidsetDescending(boolean descending)
-
Constructor Details
-
DefaultFacetSortProvider
public DefaultFacetSortProvider()
-
-
Method Details
-
isDescending
public boolean isDescending() -
setDescending
public void setDescending(boolean descending) -
getComparatorForTypeAndProperty
public 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
-