Modifier and Type | Class and Description |
---|---|
static class |
Sort.Order
Sort order.
|
Modifier and Type | Field and Description |
---|---|
protected String |
_field
The sort field.
|
protected Sort.Order |
_order
The sort order.
|
private SearchField |
_searchField |
Constructor and Description |
---|
Sort(SearchField field,
Sort.Order order)
Build a new Sort criterion.
|
Sort(String field,
Sort.Order order)
Build a new Sort criterion.
|
Modifier and Type | Method and Description |
---|---|
String |
getField()
Get the sort field.
|
Sort.Order |
getOrder()
Get the sort order.
|
void |
setField(String field)
Set the sort field.
|
void |
setOrder(Sort.Order order)
Set the sort order.
|
protected Sort.Order _order
private SearchField _searchField
public Sort(String field, Sort.Order order)
field
- The sort field as a String.order
- The sort order.public Sort(SearchField field, Sort.Order order)
field
- The sort field as a SearchField
.order
- The sort order.public Sort.Order getOrder()
public void setOrder(Sort.Order order)
order
- The sort order.