public interface Sorts
Sort instances.
It is useful to either define or append sort from a field at a Repository within a parameter to query by a method.| Modifier and Type | Interface and Description |
|---|---|
static interface |
Sorts.SortsProvider
A provider class of
Sorts |
| Modifier and Type | Method and Description |
|---|---|
Sorts |
add(Sort sort)
Appends a
Sort instance |
Sorts |
asc(String name)
Appends a
Sort instance of SortType.ASC
from the name |
Sorts |
desc(String name)
Appends a
Sort instance of SortType.DESC
from the name |
List<Sort> |
getSorts() |
Sorts |
remove(Sort sort)
|
static Sorts |
sorts()
Creates a new instance of
Sorts |
Sorts asc(String name)
Sort instance of SortType.ASC
from the namename - the nameSorts instanceNullPointerException - when name is not nullSorts desc(String name)
Sort instance of SortType.DESC
from the namename - the nameSorts instanceNullPointerException - when name is not nullSorts add(Sort sort)
Sort instancesort - the sortSorts instanceNullPointerException - when sort is nullSorts remove(Sort sort)
sort - the sort to be removedSorts instanceNullPointerException - when sort is nullCopyright © 2017–2021 Eclipse Foundation. All rights reserved.