public interface Sort
of(String, SortType),
SortType| Modifier and Type | Interface and Description |
|---|---|
static interface |
Sort.SortProvider
|
| Modifier and Type | Method and Description |
|---|---|
static Sort |
asc(String name)
Creates a new Sort of the type
SortType.ASC |
static Sort |
desc(String name)
Creates a new Sort of the type
SortType.DESC |
String |
getName()
Returns the field name
|
SortType |
getType()
The
SortType |
static Sort |
of(String name,
SortType type)
Creates a wew Sort instance to be used in a NoSQL query.
|
String getName()
static Sort of(String name, SortType type)
name - - the field name be used in a sort processtype - - the way to be sortedNullPointerException - when there are null parametersstatic Sort asc(String name)
SortType.ASCname - the field name be used in a sort processNullPointerException - when name is nullstatic Sort desc(String name)
SortType.DESCname - the field name be used in a sort processNullPointerException - when name is nullCopyright © 2017–2019 Eclipse Foundation. All rights reserved.