public class Sort extends Object
| Constructor and Description |
|---|
Sort() |
Sort(String name,
SortType type) |
| Modifier and Type | Method and Description |
|---|---|
static Sort |
asc(String name) |
Comparator |
comparator(Map<String,FieldAccess> fields) |
static Sort |
desc(String name) |
boolean |
equals(Object o) |
String |
getName() |
SortType |
getType() |
int |
hashCode() |
void |
sort(List list) |
void |
sort(List list,
Map<String,FieldAccess> fields) |
static Sort |
sorts(Sort... sorts) |
Sort |
then(Sort sort) |
Sort |
then(String name) |
Sort |
thenAsc(String name) |
Sort |
thenDesc(String name) |
String |
toString() |
public SortType getType()
public String getName()
public void sort(List list, Map<String,FieldAccess> fields)
public void sort(List list)
public Comparator comparator(Map<String,FieldAccess> fields)
Copyright © 2014. All rights reserved.