public final class SortParameters extends Object
Modifier and Type | Method and Description |
---|---|
static SortParameters |
ascending(String fieldName)
Creates ascending sorting by specified field name.
|
static SortParameters |
descending(String fieldName)
Creates descending sorting by specified field name.
|
static SortParameters |
none()
Creates empty sorting parameters that will not set any sort params in the query.
|
public static SortParameters ascending(String fieldName)
fieldName
- Name of the field used to sort.public static SortParameters descending(String fieldName)
fieldName
- Name of the field used to sort.public static SortParameters none()