| Package | Description |
|---|---|
| com.vaadin.flow.data.provider |
| Modifier and Type | Method and Description |
|---|---|
SortDirection |
SortOrder.getDirection()
Sorting direction.
|
abstract SortDirection |
SortDirection.getOpposite()
Get the sort direction that is the direct opposite to this one.
|
static SortDirection |
SortDirection.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SortDirection[] |
SortDirection.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
default <V extends Comparable<? super V>> |
InMemoryDataProvider.addSortOrder(ValueProvider<T,V> valueProvider,
SortDirection sortDirection)
Adds a property and direction to the default sorting for this data
provider.
|
protected QuerySortOrder |
QuerySortOrderBuilder.createSortOrder(String by,
SortDirection direction) |
protected abstract T |
SortOrderBuilder.createSortOrder(V by,
SortDirection direction)
Creates a sort order object with the given parameters.
|
static <V extends Comparable<? super V>> |
InMemoryDataProviderHelpers.getNaturalSortComparator(SortDirection sortDirection)
Gets the natural order comparator for the type argument, or the natural
order comparator reversed if the given sorting direction is
DESCENDING. |
static <V extends Comparable<? super V>,T> |
InMemoryDataProviderHelpers.propertyComparator(ValueProvider<T,V> valueProvider,
SortDirection sortDirection)
Creates a comparator for the return type of the given
ValueProvider, sorted in the direction specified by the given
SortDirection. |
default <V extends Comparable<? super V>> |
InMemoryDataProvider.setSortOrder(ValueProvider<T,V> valueProvider,
SortDirection sortDirection)
Sets the property and direction to use as the default sorting for this
data provider.
|
| Constructor and Description |
|---|
QuerySortOrder(String sorted,
SortDirection direction)
Constructs sorting information for usage in a
Query. |
SortOrder(T sorted,
SortDirection direction)
Constructs a field sorting information.
|
Copyright © 2000–2020 Vaadin Ltd. All rights reserved.