We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.data.provider.
Class Sort
- java.lang.Object
-
- com.vaadin.data.provider.Sort
-
All Implemented Interfaces:
public abstract class Sort extends Object implements Serializable
Helper class for constructing SortOrders.
Since:
8.0
Author:
Vaadin Ltd
See Also:
-
-
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 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 byReturns:
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 byReturns:
the sort builder
-
-