public static class Sort.SortBuilder extends Object implements Serializable
build() will create the list of sort ordersSort,
Sort.asc(String),
Sort.desc(String),
build(),
Serialized Form| Modifier | Constructor and Description |
|---|---|
protected |
SortBuilder()
Constructs an empty SortBuilder.
|
| Modifier and Type | Method and Description |
|---|---|
protected Sort.SortBuilder |
append(String by,
SortDirection direction)
Appends sorting with given sort direction.
|
List<QuerySortOrder> |
build()
Returns an unmodifiable list of the current sort order in this sort
builder.
|
Sort.SortBuilder |
thenAsc(String by)
Appends sorting with ascending sort direction.
|
Sort.SortBuilder |
thenDesc(String by)
Appends sorting with descending sort direction.
|
public Sort.SortBuilder thenAsc(String by)
by - the object to sort bypublic Sort.SortBuilder thenDesc(String by)
by - the object to sort byprotected Sort.SortBuilder append(String by, SortDirection direction)
by - the object to sort bydirection - the sort directionpublic List<QuerySortOrder> build()
Copyright © 2021 Vaadin Ltd. All rights reserved.