public final class MultiValueSortSearchModel<T> extends Base
to instantiate this class| Modifier and Type | Method and Description |
|---|---|
SortExpression<T> |
asc()
When the sort direction is ascending, the minimum value is used.
|
SortExpression<T> |
ascWithMaxValue()
Changes the default behaviour of the ascending sort by using the maximum value instead.
|
SortExpression<T> |
by(SearchSortDirection direction) |
SortExpression<T> |
desc()
When the direction is descending, the maximum value is used.
|
SortExpression<T> |
descWithMinValue()
Changes the default behaviour of the descending sort by using the minimum value instead.
|
SearchModel<T> |
getSearchModel()
The search model for the facet.
|
static <T> MultiValueSortSearchModel<T> |
of(String attributePath)
Creates an instance of the search model to generate multi-valued sort expressions.
|
public SortExpression<T> asc()
asc in interface SortSearchModel<T>public SortExpression<T> desc()
desc in interface SortSearchModel<T>public SortExpression<T> ascWithMaxValue()
public SortExpression<T> descWithMinValue()
public static <T> MultiValueSortSearchModel<T> of(String attributePath)
T - type of the resourceattributePath - the path of the attribute as expected by Composable Commerce (e.g. "variants.attributes.color.key")public SearchModel<T> getSearchModel()
SortSearchModelgetSearchModel in interface SortSearchModel<T>public SortExpression<T> by(SearchSortDirection direction)
by in interface SortSearchModel<T>