Package com.vaadin.flow.component.grid
Class GridSortOrder<T>
java.lang.Object
com.vaadin.flow.data.provider.SortOrder<Grid.Column<T>>
com.vaadin.flow.component.grid.GridSortOrder<T>
- Type Parameters:
T- the grid type
- All Implemented Interfaces:
Serializable
Sorting information for
Grid.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGridSortOrder(Grid.Column<T> column, SortDirection direction) Construct sorting information for usage in aGrid. -
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.booleanGets the column this sorting information is attached to.inthashCode()Methods inherited from class com.vaadin.flow.data.provider.SortOrder
getDirection
-
Constructor Details
-
GridSortOrder
Construct sorting information for usage in aGrid.- Parameters:
column- the column to be sorteddirection- sorting direction
-
-
Method Details
-
getSorted
Gets the column this sorting information is attached to.- Overrides:
getSortedin 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 type- Parameters:
by- the column to sort by- Returns:
- the grid sort builder
-
desc
Creates a new grid sort builder with given sorting using descending sort direction.- Type Parameters:
T- the grid type- Parameters:
by- the column to sort by- Returns:
- the grid sort builder
-
equals
-
hashCode
public int hashCode()
-