| Constructor and Description |
|---|
Sort(String field,
int direction)
Creates a sort on a field with a direction.
|
| Modifier and Type | Method and Description |
|---|---|
static Sort |
ascending(String field)
Creates an ascending sort on a field
|
static Sort |
descending(String field)
Creates a descending sort on a field
|
int |
getDirection() |
String |
getField() |
public Sort(String field, int direction)
field - the fielddirection - the directionpublic static Sort ascending(String field)
field - the fieldpublic static Sort descending(String field)
field - the fieldpublic int getDirection()
public String getField()