com.vaadin.flow.component.grid.
Class GridSortOrder<T>
Type Parameters:
T
- the grid type
All Implemented Interfaces:
Sorting information for Grid
.
See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGridSortOrder
(Grid.Column<T> column, SortDirection direction) Construct sorting information for usage in a
Grid
. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> GridSortOrderBuilder<T>
asc
(Grid.Column<T> by) Creates a new grid sort builder with given sorting using ascending sort direction.
static <T> GridSortOrderBuilder<T>
desc
(Grid.Column<T> by) Creates a new grid sort builder with given sorting using descending sort direction.
boolean
Gets the column this sorting information is attached to.
int
hashCode()
Methods inherited from class com.vaadin.flow.data.provider.SortOrder
getDirection
-
Constructor Details
-
GridSortOrder
Construct sorting information for usage in a
Grid
.Parameters:
column
- the column to be sorteddirection
- sorting direction
-
-
Method Details
-
getSorted
Gets the column this sorting information is attached to.
Overrides:
getSorted
in classSortOrder<Grid.Column<T>>
Returns:
the column being sorted
-
asc
Creates a new grid sort builder with given sorting using ascending sort direction.
Type Parameters:
T
- the grid typeParameters:
by
- the column to sort byReturns:
the grid sort builder
-
desc
Creates a new grid sort builder with given sorting using descending sort direction.
Type Parameters:
T
- the grid typeParameters:
by
- the column to sort byReturns:
the grid sort builder
-
equals
-
hashCode
public int hashCode()
-