Package com.vaadin.data.provider
Class Sort
- java.lang.Object
-
- com.vaadin.data.provider.Sort
-
- All Implemented Interfaces:
Serializable
public abstract class Sort extends Object implements Serializable
Helper class for constructing SortOrders.- Since:
- 8.0
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Sort.SortBuilder
SortBuilder is a helper class with fluent API for constructing sort order lists.
-
Constructor Summary
Constructors Constructor Description Sort()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Sort.SortBuilder
asc(String by)
Creates a new sort builder with given sorting using ascending sort direction.static Sort.SortBuilder
desc(String by)
Creates a new sort builder with given sorting using descending sort direction.
-
-
-
Method Detail
-
asc
public static Sort.SortBuilder asc(String by)
Creates a new sort builder with given sorting using ascending sort direction.- Parameters:
by
- the object to sort by- Returns:
- the sort builder
-
desc
public static Sort.SortBuilder desc(String by)
Creates a new sort builder with given sorting using descending sort direction.- Parameters:
by
- the object to sort by- Returns:
- the sort builder
-
-