T
- the type of the sort propertypublic class SingleSortState<T> extends Object implements ISortState<T>, IClusterable
Constructor and Description |
---|
SingleSortState() |
Modifier and Type | Method and Description |
---|---|
SortOrder |
getPropertySortOrder(T property)
Gets the sort order of a property
|
SortParam<T> |
getSort() |
void |
setPropertySortOrder(T property,
SortOrder order)
Sets sort order of the property
|
void |
setSort(SortParam<T> param)
Sets the current sort state
|
String |
toString() |
public void setPropertySortOrder(T property, SortOrder order)
ISortState
setPropertySortOrder
in interface ISortState<T>
property
- the name of the property to sort onorder
- sort orderpublic SortOrder getPropertySortOrder(T property)
ISortState
getPropertySortOrder
in interface ISortState<T>
property
- sort property to be checkedpublic void setSort(SortParam<T> param)
param
- parameter containing new sorting informationCopyright © 2006–2022 Apache Software Foundation. All rights reserved.