public class SortInfo extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
SORT_ASCENDING_NAME |
static String |
SORT_COLUMN_NAME |
protected boolean |
sortAscending |
protected String |
sortColumn |
Constructor and Description |
---|
SortInfo(String sortColumn,
boolean sortAscending) |
Modifier and Type | Method and Description |
---|---|
static Map<String,Serializable> |
asMap(SortInfo sortInfo)
Returns a map for given sort info, or null if sort info is null.
|
static SortInfo |
asSortInfo(Map<String,Serializable> map)
Returns a sort info for given map, or null if map is null or does not contain both keys
SORT_COLUMN_NAME
and SORT_ASCENDING_NAME . |
boolean |
equals(Object obj) |
boolean |
getSortAscending() |
String |
getSortColumn() |
void |
setSortAscending(boolean sortAscending) |
void |
setSortColumn(String sortColumn) |
String |
toString() |
public static final String SORT_COLUMN_NAME
public static final String SORT_ASCENDING_NAME
protected String sortColumn
protected boolean sortAscending
public boolean getSortAscending()
public String getSortColumn()
public void setSortColumn(String sortColumn)
public void setSortAscending(boolean sortAscending)
public static Map<String,Serializable> asMap(SortInfo sortInfo)
The map keys are SORT_COLUMN_NAME
and SORT_ASCENDING_NAME
.
public static SortInfo asSortInfo(Map<String,Serializable> map)
SORT_COLUMN_NAME
and SORT_ASCENDING_NAME
.Copyright © 2017 Nuxeo. All rights reserved.