public final class SingleValueSortSearchModel<T> extends Base
to instantiate this class| Modifier and Type | Method and Description |
|---|---|
SortExpression<T> |
asc() |
SortExpression<T> |
by(SearchSortDirection direction) |
SortExpression<T> |
desc() |
SearchModel<T> |
getSearchModel()
The search model for the facet.
|
static <T> SingleValueSortSearchModel<T> |
of(String attributePath)
Creates an instance of the search model to generate single-valued sort expressions.
|
public SortExpression<T> asc()
asc in interface SortSearchModel<T>public SortExpression<T> desc()
desc in interface SortSearchModel<T>public static <T> SingleValueSortSearchModel<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>